ModRewrite Domain
Posted
by Mike Knoop
on Server Fault
See other posts from Server Fault
or by Mike Knoop
Published on 2010-06-16T18:01:45Z
Indexed on
2010/06/16
18:03 UTC
Read the original article
Hit count: 157
apache
|mod-rewrite
I've done a little research into ModRewrite rules and conditions but have not been able to find a satisfactory set of rules/conds which achieve the effect I'm looking for.
Essentially, I have a directory on domain A (http://www.domaina.com/dir/) which I would like to redirect to a different directory on domain B (http://www.domainb.com/diff_dir/).
Note that I only want to apply the rewrite rule if the user is attempting to access /dir/ on domaina. If they are accessing a different directory or root I do not want to rewrite the URL.
Thank you!
© Server Fault or respective owner