How to add a WildCard redirection on the Cloud?

If you want to redirect a domain and everything inside it to a new domain, whilst keeping the permalink structure, then you can do this by using mod_rewrite. Simply add the following lines of code to the site's .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.+\.)?old-domain.com$ [NC]
RewriteRule ^ http://new-domain.com%{REQUEST_URI} [R=301,L]

Be sure to change old-domain.com and new-domain.com to your own domains.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can you get me to the top of Google?

While our hosting here at Tsohost is certainly SEO Friendly, we won't be able to optimise your...

How to create a 301 redirect

You can redirect one of your domains to another by using a 301 Redirect. For example we can set...

How to create a 301 redirect

You can redirect one of your domains to another by using a 301 Redirect. For example we can set...

Is your hosting SEO friendly?

All of our hosting packages are completely SEO friendly, there is nothing to stop your site...