除主页外的每个页面上的 Wordpress 404 错误(迁移后) [英] Wordpress 404 error on every page except homepage (After migration)

查看:35
本文介绍了除主页外的每个页面上的 Wordpress 404 错误(迁移后)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的 wordpress 网站从我的桌面迁移到 siteground 以进行托管.在此之前,我一直在使用 x10 的免费托管.我第一次转移网站时一切正常.第二次尝试(网站的新版本)时,我发现除主页外的每个页面都有 404 错误(这是 x10).然后我在 siteground 托管,但仍然遇到完全相同的问题.有什么解决办法吗?

I have migrated my wordpress website from my desktop over to siteground for hosting. Prior to doing this I had been using free hosting at x10. The first time I transferred the site everything worked fine. The second time I tried (new version of the website) I found that every page except the home page had a 404 error (this was with x10). I then got hosting at siteground and am still having the exact same problem. Any solutions to this?

我的 .htaccess 文件

My .htaccess file

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

# END WordPress

推荐答案

修复它

  1. 登录/wp-admin
  2. 转到设置->固定链接
  3. 然后点击保存更改按钮.

这篇关于除主页外的每个页面上的 Wordpress 404 错误(迁移后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆