【发布时间】:2016-01-03 21:00:22
【问题描述】:
当我今天检查我的 wordpress https 网站时,我发现了一些重定向错误。
我从来没有在我这边创建过这些重定向。
- https://www.estambul.net/sitios-de-interes/mezquita-azul/
- https://www.estambul.net/sitios-de-interes/santa-sofia/
这两个帖子重定向到
****/sitios-de-interes/museo-arqueologico-de-estambul/
还有这个
****/sitios-de-interes/museo-arqueologico-de-estambul/
重定向到
****/sitios-de-interes/santa-sofia/
所有这些都会造成一个无限循环。
在这里你可以看到我的 htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security 'max-age=31536000' env=HTTPS
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
这个问题出在哪里,请帮忙。
其他帖子没有同样的问题。
【问题讨论】:
-
我发现当我处理 url slug 时,它可以解决问题。蛞蝓有什么问题?