Forum Moderators: phranque

Message Too Old, No Replies

mod proxy to double subdomain

proxy redirect a directory to the double subdomain of another domain

         

spa562

2:47 am on Oct 30, 2009 (gmt 0)

10+ Year Member



I have been experimenting with mod_proxy, but it seems to be doing something strange with subdomains.

The following will correctly redirect me to [double.subdomain.google.com...]

RewriteEngine on
RewriteBase /
RewriteRule ^(.*) [double.subdomain.google.com...]

the following will throw away the first subdomain and proxy me to subdomain.google.com

RewriteEngine on
RewriteBase /
RewriteRule ^(.*) [double.subdomain.google.com...] [P]

jdMorgan

5:00 pm on Oct 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This isn't normal, so I'd suggest a careful review of your proxy set-up, any other mod_dir, mod_alias, mod_negotiation, or mod_rewrite directives, and/or any scripts which may be interfering with your intended operation.

Jim