I'm able to redirect for the main page using this code:
301 redirect for subfolder question
6
I'm able to redirect for the main page using this code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
However, the same conditions don't apply for a subfolder as I can't get http://domain.com/blog to redirect to http://www.domain.com/blog.
Anyone know how to redirect for this subfolder?
Thank You.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
However, the same conditions don't apply for a subfolder as I can't get http://domain.com/blog to redirect to http://www.domain.com/blog.
Anyone know how to redirect for this subfolder?
Thank You.
- Steve Diamond
- [ 1 ] Thanks
- millionairemoney
- [1] reply
- Steve Diamond
- [1] reply
Next Topics on Trending Feed
-
6