我有这个重写规则...
将所有初始请求从 world.example.com 重定向到 web.example.com
RewriteCond %{HTTP_HOST} ^world\.example\.com$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ https://web.example.com$1 [R=301,L]
效果很好。但是,我的一些应用程序...
https://world.example.com/approvals/?id=b47b5256567
不幸的是,它没有正确重定向到 web.example.com。相反,它只是在没有查询参数的情况下进入 web.example.com。
如何使所有请求连同查询参数一起正确重定向到 web.example.com?
基本上,它应该做什么......
https://world.example.com/approvals/?id=b47b5256567
then
https://web.example.com/approvals/?id=b47b5256567
只需将世界更改为 web 并传递查询字符串。
帮助