.htaccess:最简单的重定向会产生太多重定向
这是我在.htaccess中的简单规则(我想将仅1个url重定向到其https版本): 但这给了我 net::ERR\u太多\u重定向.htaccess:最简单的重定向会产生太多重定向,.htaccess,.htaccess,这是我在.htaccess中的简单规则(我想将仅1个url重定向到其https版本): 但这给了我 net::ERR\u太多\u重定向 你正在那里创建一个无限重定向。请尝试以下方法: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule gateway\.php https://www.example.com/gateway.php [R=302,L] 确保已加载mod_rewrite RewriteEngine On RewriteCon
你正在那里创建一个无限重定向。请尝试以下方法:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule gateway\.php https://www.example.com/gateway.php [R=302,L]
确保已加载mod_rewrite
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule gateway\.php https://www.example.com/gateway.php [R=302,L]