homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Trailing Slash problem

10+ Year Member

Msg#: 565 posted 7:11 pm on Sep 28, 2003 (gmt 0)

Hi folks,

I've got I question related to xcandyman's and I have looked everywhere to find an answer.
Maybe you can help?!

This is (a part of) my .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_URI} (.*)\/$
RewriteRule (.*)\/$ /index.php?page=$1

It works fine when I use the trailing slash:

but it does not without the slash.
I have found out how to add the slash automatically, if the 'dynamic' directories are in in subdirectory:

How can I have the slash added, if die dynamic directory is behind the host?

And one more question - sorry ;)

How can I prevent the server from performing the Rewrite rule, if I have got a really existing directory with an index.html in it (e. g. www.host.com/html/testdir).

Thank your very, very much in advance


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved