homepage Welcome to WebmasterWorld Guest from 54.242.18.190
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
trailing slash problem - rewriting
scorpion




msg:1509233
 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.

 

jdMorgan




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

Scorpion,

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

HTH,
Jim

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