This is a discussion on mod_rewrite: trailing slash within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello listies, I have a directory and subdirectory under docroot, with the following .htaccess files: ## DOCROOT/myfolder/.htaccess: <IfModule ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello listies,
I have a directory and subdirectory under docroot, with the following .htaccess files: ## DOCROOT/myfolder/.htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule> ## DOCROOT/myfolder/webroot/.htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule> Requests to http://server/myfolder/ work fine, Requests to http://server/myfolder (No trailing slash) DO NOT. I've tried variations with rewritebase and rules like: RewriteRule ^$ /myfolder/ [R,L] To no avail. Any help? |