View Full Version : htaccess question

05-07-2011, 11:56 AM
Hi Guys,
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, 08:44 PM
This kinda does it for just redirecting the root

RewriteEngine On
RewriteRule ^(.*)$ subdirectory/$1 [L]

but I need navigation links in the website to drop the word site in the url too.