Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-11, 02:47
BOD Member
 
Join Date: Dec 2010
Posts: 170
Default Redirect .htaccess to sub-folder

I want to redirect .htaccess to sub-folder. How can I do that?
Please suggest me any simple steps to do that.
Reply With Quote
  #2 (permalink)  
Old 11-07-11, 04:37
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

You can follow the following steps :
Quote:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} www.domainname [OR]
RewriteCond %{HTTP_HOST} domainname
RewriteCond %{REQUEST_URI} !subfolder/
RewriteRule ^(.*)$ subfolder/$1 [L]
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.