Redirect one domain to other keeping links intact

Rate this item
(0 votes)
Tuesday, 26 March 2013 16:44;
Published in Joomla Tutorials;

Before making this website live on this domain, we developed the whole on a different domain. That took around 2 months to develop and during this 2 months, Google had indexed that development website. Now, our primary concern was how to redirect all the development domain links to our main website link, without losing the targeted page traffic. 






For example, if a user has googled "Audio Player Joomla Module" and landed on,

We wanted this to automatically goto


So, this is called a tricky 301 redirect through .htaccess file of the Joomla website. Here is how I did it. I simply opened the Joomla .htaccess file and placed this code :

RewriteEngine On

RewriteCond %{HTTP_HOST} ^$ [OR]

RewriteCond %{HTTP_HOST} ^$

RewriteRule (.*)$$1 [R=301,L]


Read 1184 times Last modified on Thursday, 03 October 2013 16:03
comments powered by Disqus

We are on Facebook

Tutorials Search