Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

trailing slash problem - rewriting



7:39 pm on Dec 29, 2002 (gmt 0)

10+ Year Member

I have this problem

abc.com/test (without the trailing slash)

reveals my rewrite e.g. abc.com/reweritesubdirectory/test

However, abc.com/test/ (with the trailing) slash appears correct.

How can I rewrite the first case in my .htaccess file such that the subdirectory of the rewrite (I am rewriting a toplevel domain to a subdirectory) does not show up.


7:50 pm on Dec 29, 2002 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member


The Apache 1.3 URL Rewriting Guide [httpd.apache.org] provides a solution for this specific problem as the fourth example under "URL Layout".



Featured Threads

Hot Threads This Week

Hot Threads This Month