Mod_rewrite 遮罩 URL

Mod_rewrite 遮罩 URL

我需要重寫https://mydomain1.com/chanagepasswordhttps://mydomain2.com/ssp

然後在瀏覽器中隱藏 url mydomain2.com/cp 並顯示https://mydomain1.com/chanagepassword

我得到了使用規則的第一部分:

選項+FollowSymLinks
重寫引擎開啟
RewriteRule /changepassword https://mydomain2.com/ssp/ [R=301,L]

然而它顯示https://mydomain2.com/ssp瀏覽器上的網址。我怎麼能掩蓋這個並顯示https://mydomain1.com/chanagepassword

答案1

SSLProxyEngine on
SSLProxyCheckPeerCN on
SSLProxyCheckExpire on
ProxyPass /changepassword https://mydomain2.com/ssp
ProxyPassReverse /changepassword https://mydomain2.com/ssp

「請支持」是免費網站上的粗魯短語,請檢查您的英文翻譯。 「請幫忙」更好。

相關內容