Published on : July 29, 2009 by Sharafuddin M.A
To redirect domain to a subfolder you can create a new .htaccess file in the document root of the domain. Then Edit .htaccess file and include the following entries: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]