Rollback999

What Would I Need to Put In my .htaccess File to Redirect Blog Posts From One Domain to the Next?

Asked by Rollback999 2 years ago blog redirect domain htaccess


Pablo G
0
 
Place this in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain[dot]com$ [NC]
RewriteRule ^(.*)$ http://blog[dot]domain[dot]com/$1 [R=301,L]

It works well. You should be able to successfully visit domain[dot]com wihtout getting redirected.

by Pablo G 2 years ago

Answer this question

What Would I Need to Put In my .htaccess File to Redirect Blog Posts From One Domain to the Next?

0 errors found:

 
0