Posted By

math89 on 12/19/09


Tagged

htaccess


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

NARKOZ
Priestd09


Redirect Your Domain To A Subfolder Using .htaccess


 / Published in: Apache
 

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

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

Report this snippet  

You need to login to post a comment.