Bluehost.com Web Hosting $6.95

mod_rewrite: trailing slash

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2007
winterbeef@gmail.com
 
Posts: n/a
Default mod_rewrite: trailing slash

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?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0