简体   繁体   English

Wordpress wp-admin/setup-config.php 主页重定向循环

[英]Wordpress wp-admin/setup-config.php homepage redirect loop

I have a common problem that many of us already encountered before.我有一个常见的问题,我们很多人以前都遇到过。

I installed Wordpress on a subdomain on my server.我在服务器的子域上安装了 Wordpress。 The Homepage (www.mydomain.com) keeps redirecting to www.mydomain.com/wp-admin/setup-config.php.主页 (www.mydomain.com) 不断重定向到 www.mydomain.com/wp-admin/setup-config.php。

Interestingly, other pages than the home page (fi www.mydomain.com/blog) DOES NOT redirect.有趣的是,除主页 (fi www.mydomain.com/blog) 之外的其他页面不会重定向。 Those work fine.那些工作得很好。 It is just the homepage (www.mydomain.com/) itself that redirects.重定向的只是主页 (www.mydomain.com/) 本身。

I use the Illdy theme as a child theme.我使用 Illdy 主题作为子主题。

I did already:我已经做了:

  • Checked/repaired the tables in MySQL检查/修复 MySQL 中的表
  • Checked siteurl and home in the wp-options table在 wp-options 表中检查了 siteurl 和 home
  • Checked the table-prefix in wp-config检查 wp-config 中的表前缀
  • checked the wp-config that everything is alright检查 wp-config 一切正常
  • Deleted/tried different .htcacces files删除/尝试了不同的 .htcacces 文件
  • Set up static front page (tried also latest post as alternative, no change)设置静态首页(也尝试过最新帖子作为替代,没有变化)

Intersting is also that in the customnizer of the Illdy theme, I can see the homepage itself in the preview.有趣的是,在 Illdy 主题的定制器中,我可以在预览中看到主页本身。 No redirect here.这里没有重定向。

Sadly I also did fix this issue once before, also on a subdomain but with a child theme of Sydney.可悲的是,我之前也确实解决过这个问题,也是在一个子域上,但具有悉尼的儿童主题。 But unfortuantely I forgot completely what I did back then and don't get it together anymore :(但不幸的是,我完全忘记了我当时所做的事情,并且不再把它放在一起:(

Any ideas what it could be?任何想法可能是什么?

OK, got it.好的,明白了。

It was the Browser Cache.它是浏览器缓存。 I just refreshed the page with the shift-F5 all the time, but nope, needed to empty the cache.我只是一直用 shift-F5 刷新页面,但不,需要清空缓存。

Don't really understand why actually, but anyway, problem solved and lesson learned.真的不明白为什么实际上,但无论如何,问题解决了,吸取了教训。 :) :)

In my case there was a permission problem.就我而言,存在许可问题。 I solved with this commands.我用这个命令解决了。

chown www-data:www-data  -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM