【问题标题】:ERR_TOO_MANY_REDIRECTS wordpressERR_TOO_MANY_REDIRECTS wordpress
【发布时间】:2016-05-30 13:47:39
【问题描述】:

我遇到了一个奇怪的问题,wordpress 主页仅在 Google Chrome 上出现 302 错误(重定向循环),但是如果我先访问我的管理面板然后返回主页,它就可以工作... 我安装了 WPML 和 Yoast SEO。 安装在子文件夹中。

有人知道发生了什么吗?

这里是链接:www.scrybs.com

提前致谢

我的htaccess如下:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^([^/]*)/auth/$ /auth/?lang=$1 [L]
RewriteRule ^([^/]*)/auth/login$ /auth/login.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/logout$ /auth/logout.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/registration$ /auth/registration_form.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/password-forgotten$ /auth/forgot_form.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/facebook$ /auth/facebook_connect.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/reset$ /auth/reset.php?lang=$1 [L]
RewriteRule ^([^/]*)/auth/activate$ /auth/activate.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/$ /account/?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/$ /account/t/?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/jobs/$ /account/t/jobs.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/myjobs/$ /account/t/myjobs.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/myaccount/$ /account/t/myaccount.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/([^/]*)$ /account/t/?lang=$1&step=$2 [L]
RewriteRule ^([^/]*)/account/t/tests/$ /account/t/testspage.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/t/jobs/([^/]*)/$ /account/t/orderpage.php?lang=$1&ref=$2 [L]
RewriteRule ^([^/]*)/account/t/transactions/$ /account/t/transactions.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/c/$ /account/c/?lang=$1 [L]
RewriteRule ^([^/]*)/account/c/([^/]*)$ /account/c/?lang=$1&step=$2 [L]
RewriteRule ^([^/]*)/account/c/myorders/$ /account/c/myorders.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/c/myaccount/$ /account/c/myaccount.php?lang=$1 [L]
RewriteRule ^([^/]*)/account/c/myorders/([^/]*)/$ /account/c/orderpage.php?lang=$1&ref=$2 [L]
RewriteRule ^([^/]*)/account/c/transactions/$ /account/c/transactions.php?lang=$1 [L]
RewriteRule ^([^/]*)/order/$ /order/?lang=$1 [L]
RewriteRule ^([^/]*)/order/reference/([^/]*)/$ /order/reference.php?lang=$1&ref=$2 [L]
RewriteRule ^([^/]*)/support/$ /support/?lang=$1 [L]
RewriteRule ^([^/]*)/support/requests/new/$ /support/requests/newrequest.php?lang=$1 [L]
RewriteRule ^([^/]*)/support/translators/$ /support/translators.php?lang=$1 [L]
RewriteRule ^([^/]*)/support/topics/([^-]+)-([^/]+)$ /support/topic.php?lang=$1&id=$2&url=$3 [NC,L]
RewriteRule ^([^/]*)/guest-tracking/$ /guest-tracking/?lang=$1 [L]

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

# END WordPress

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

【问题讨论】:

  • 感谢您的评论。我添加了我的 htaccess 内容,但是如果它是 htaccess,我在进入管理面板后将无法访问主页。我愿意花钱解决这个问题!!!
  • @JordanBelfort17 。你能告诉我有什么问题吗?
  • @VasimVanzara 我无缘无故被否决了。基本上问题是我们无法访问主页。如果我们转到另一个页面然后返回主页,它正在工作......如果我们转到另一个页面并清除缓存和 cookie,我们将无法访问主页。

标签: php wordpress .htaccess google-chrome wpml


【解决方案1】:

您的服务器配置与 WP 域配置存在问题,导致无限循环。检查两个地方的域是否相同

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    • 2021-03-02
    • 1970-01-01
    • 2018-07-11
    • 2015-04-15
    • 1970-01-01
    • 2017-07-20
    相关资源
    最近更新 更多