Wednesday, 07 January 2009
jayeshjayan.com
Main Menu
Home
Tech Blog
Sweet Memories
Flash Album
Discussions
News
Links
Search
News Feeds
Contact Me
Home arrow Tech Blog
Newsflash

Technical Blog

Redirecting a domain to a subfolder using .htaccess. 

April 13th, 2006

Edit .htaccess file and include the following

RewriteEngine On

Options +FollowSymlinks

RewriteBase /

RewriteCond %{HTTP_HOST} www.domainname [OR]

RewriteCond %{HTTP_HOST} domainname

RewriteCond %{REQUEST_URI} !subfolder/

RewriteRule ^(.*)$ subfolder/$1 [L]

Leave a Reply

You must be logged in to post a comment.



© 2009 jayeshjayan.com
Joomla! is Free Software released under the GNU/GPL License.