misterx
09-24-2005, 07:43 PM
I'm trying to keep my site in a subdirectory of my actual root directory and redirect users to that subdirectory automatically.
The directory is called site and the problem I'm having is with trailing backslashes in the URL.
For example:
If you browse to http://www.maniacalmonkey.com/monkeyboard then you will notice that the URL changes to reveal the site directory. (maniacalmonkey.com/site/monkeyboard/)
However, if you browse to http://www.maniacalmonkey.com/monkeyboard/ the URL remains unchanged which is what I would like to happen every time.
This is what my .htaccess file looks like currently:
Options -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/site/
RewriteRule ^(.*)$ /site/$1
Anyone know what changes/additions need to be made to keep the site directory from showing up in the URL when the trailing backslash is left out?
The directory is called site and the problem I'm having is with trailing backslashes in the URL.
For example:
If you browse to http://www.maniacalmonkey.com/monkeyboard then you will notice that the URL changes to reveal the site directory. (maniacalmonkey.com/site/monkeyboard/)
However, if you browse to http://www.maniacalmonkey.com/monkeyboard/ the URL remains unchanged which is what I would like to happen every time.
This is what my .htaccess file looks like currently:
Options -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/site/
RewriteRule ^(.*)$ /site/$1
Anyone know what changes/additions need to be made to keep the site directory from showing up in the URL when the trailing backslash is left out?