Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要它,所以所有 http 或 https 请求都使用同一页面转到 https://mydomain.com。
所以即使 https://mydomain.net/donate/ 和 http://mydomain.net/donate/ 也会去 https://mydomain.com/donate/
有什么帮助吗?提前致谢!
不敢相信我忘记了如何使用 htaccess 执行此操作:p
RewriteEngine On RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://newdomain/$1 [R,L]
而已。