Return to Snippet

Revision: 21728
at December 19, 2009 09:46 by math89


Initial Code
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ blog [L]

Initial URL

                                

Initial Description
Redirect to a subfolder (blog) in a search engine friendly way using .htaccess. Change “YourDomain.com” to your domain name.

Initial Title
Redirect Your Domain To A Subfolder Using .htaccess

Initial Tags
htaccess

Initial Language
Apache