For Techs.... Techniques.... Technologies....


How to redirect all urls from one domain to another using .htaccess

This article explains the .htaccess configuration for redirecting all urls from one domain to another.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteRule (.*)$$1 [R=301,L]

Where and need to be replaces with the appropriate domains.

Then all the traffic to "" will be redirected to the corresponding urls in "".

That's all…