目前编码器在.htaccess文件中有以下行:
RewriteRule ^注册$ registration.php
我明白这是什么意思。
不过,我也想将domain.com/registrationredirect到https://domain.com/registration
有人知道我怎么能做到这一点? 我不希望应用程序中的任何其他页面转到https:// …
问候,菲奥娜
在执行重写之前,您需要确保stream量不会通过HTTPS进入,否则可能会导致无限重写循环。
假设Apache 2.0及以上版本:
重写closuresHTTPS 重写规则^ /注册$ https://domain.com/registration.php
使用
RewriteRule ^/registration$ https://domain.com/registration.php