Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

external rewrite question

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

Preferred Member

10+ Year Member

joined:Aug 15, 2002
votes: 0

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

Rewrite /domain1 [domain2.com...]

Assuming domain1 has a subdirectory is this true?

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

6:58 am on June 28, 2003 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
votes: 0


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.