Welcome to WebmasterWorld Guest from 54.226.189.112

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Trailing Slash problem

     

plough

7:11 pm on Sep 28, 2003 (gmt 0)

10+ Year Member



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:
www.host.com/test/

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:
www.host.com/dir/test(/)

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
plough

 

Featured Threads

Hot Threads This Week

Hot Threads This Month