homepage Welcome to WebmasterWorld Guest from 50.16.130.188
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
external rewrite question
scorpion




msg:1522606
 1:10 am on Jun 28, 2003 (gmt 0)

If you do an external rewrite to a new domain, do subdirectories of the old domain transfer to the new?

Example:
Rewrite /domain1 [domain2.com...]

Assuming domain1 has a subdirectory is this true?

domain1.com/adirectory/ <rewrite> ===> domain2.com/adirectory/

 

jdMorgan




msg:1522607
 6:58 am on Jun 28, 2003 (gmt 0)

scorpion,

Yes, Redirect uses prefix-matching; subdirectories and filenames not specified in the left-side pattern are added onto the URL on the right side.

It's actually harder if you don't want to keep the path - you have to use RedirectMatch.

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