| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|trailing slash problem - rewriting|
| 7:39 pm on Dec 29, 2002 (gmt 0)|
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)|
The Apache 1.3 URL Rewriting Guide [httpd.apache.org] provides a solution for this specific problem as the fourth example under "URL Layout".
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved