Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: htaccess question
05-07-2011, 10:56 AM #1
I'm sure there a way to do this.
If I have a site called eg www.mysite.com and the site files are in a directory called site so www.mysite.com/site/index.php..
Is there a way in htaccess or other so that I can hide "site" in the url so that that it looks like the user is in the root? I'm just building a new site into an existing site and would like to be able to switch over easily to the new directory but not have "site" in the url. I don't want the user to know they are in a directory called site.
Hope i explained this well.
05-07-2011, 07:44 PM #2
This kinda does it for just redirecting the root
RewriteEngine On RewriteRule ^(.*)$ subdirectory/$1 [L]