gpt4 book ai didi

.htaccess - ERR_TOO_MANY_REDIRECTS

转载 作者:行者123 更新时间:2023-12-01 03:43:54 25 4
gpt4 key购买 nike

我使用这个 .htaccess 在我的 url 示例末尾添加日期、小时、分钟:

example.com/pagename?201502201855   

它适用于我所有的帖子和页面,但如果我导航到页码 2,3,4,5,6 示例
example.com/page/2/?201502211929

然后我得到错误:这个网页有一个重定向循环错误代码:ERR_TOO_MANY_REDIRECTS
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /


RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(?!wp-admin)^(?!wp-login.php) %{REQUEST_URI}?%{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR}%{TIME_MIN} [L,R=302,NE]

RewriteCond %{TIME_YEAR}%{TIME_MON}##%{QUERY_STRING} ^([^#]+)##\1
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR}%{TIME_MIN}##%{QUERY_STRING} !^([^#]+)##\1
RewriteRule ^(?!wp-admin)^(?!wp-login.php) %{REQUEST_URI}?%{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR}%{TIME_MIN} [L,R=302,NE]
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

最佳答案

.htaccess文件,添加一行:

SetEnvIf X-Forwarded-Proto https HTTPS=on

关于.htaccess - ERR_TOO_MANY_REDIRECTS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28780253/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com