2009-08-08 42 views

回答

2
RewriteRule ^store$ http://store.anotherdomain.com/me [P] 

[P]在末端。您還需要啓用mod_proxy模塊。

2

根本不需要mod_rewrite。

您需要啓用mod_proxy並配置reverse proxy。你甚至可以從其他域傳遞cookie,並使它們看起來好像來自你的網站。

ProxyPass /store/ http://store.anotherdomain.com/me/ 
ProxyPassReverse /store/ http://store.anotherdomain.com/me/ 
ProxyPassReverseCookieDomain store.anotherdomain.com www.mydomain.com 
ProxyPassReverseCookiePath /me/ /store/ 
相關問題