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,

http://www.qubesys.org/audio-platyer-joomla-module

We wanted this to automatically goto

http://www.joomclub.org/joomla-extensions/audio-player-joomla-module

 

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} ^qubesys.org$ [OR]

RewriteCond %{HTTP_HOST} ^www.qubesys.org$

RewriteRule (.*)$ http://www.joomclub.org/$1 [R=301,L]

REQUEST A QUOTE CONTACT US

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

We are on Facebook

Tutorials Search