phranque

msg:4298662 | 12:05 am on Apr 16, 2011 (gmt 0) |
what type of server is primary.com running on?
|
Shatner

msg:4298703 | 1:27 am on Apr 16, 2011 (gmt 0) |
Linux.
|
phranque

msg:4298833 | 9:54 am on Apr 16, 2011 (gmt 0) |
apache?
|
Shatner

msg:4299564 | 11:31 pm on Apr 17, 2011 (gmt 0) |
Yes. Apache.
|
phranque

msg:4299707 | 8:29 am on Apr 18, 2011 (gmt 0) |
if you put this in the .htaccess file in your document root directory it will redirect exactly the subdirectory "/two/" to the "secondary.com" domain, but none of the contents of "two" will be redirected: Options +FollowSymLinks RewriteEngine on RewriteRule ^two\/$ [secondary.com...] [R=301,L] is that what you were looking for?
|
g1smd

msg:4299716 | 8:41 am on Apr 18, 2011 (gmt 0) |
Forward slashes never need escaping.
RewriteRule ^two/(.*) http://www.example.com/$1 [R=301,L]
|
Shatner

msg:4300139 | 12:05 am on Apr 19, 2011 (gmt 0) |
Close, but I actually do also want the contents of "two" to be redirected. At the same time if someone types in secondary.com/one/ I want it to redirect to primary.com/one/ Including all the contents on all of those directories in this. Again, apologies if I'm explaining this in a confusing way.
|
|