Category: Web Hosting Help

Full domain to domain redirect with wildcard support

By

To divert a domain name to a new one, and include all wildcards, i.e, everything inserted after the / – you’ll need to do the following: <IfModule mod_rewrite.c>RewriteEngine On   RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]   RewriteCond %{HTTP_HOST} ^www.olddomain.com$   RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L] </IfModule> The /$1 at the end means if someone goes to olddomain.com/something it will take…