Redirect site to subfolder

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subfolder/$1
RewriteCond %{HTTP_HOST} ^(www.)?$
RewriteRule ^(/)?$ subfolder/Home.html [L]

1 Comment

You must be logged in to post a comment.

  1. im also a wesbite owner, this kind of trkcis is really helpful but if you wanna go for SSL because you have a buy and sell site, i rather go for webhosting that bundle an SSL package, anyways, this is a good security protection for small scale sites...not really recommended for securing information...thanks for sharing