【问题标题】:Wordpress Page not loading displays "Object Not Found" after migration from live to localhost从实时迁移到本地主机后,Wordpress 页面未加载显示“找不到对象”
【发布时间】:2021-03-09 05:59:30
【问题描述】:

从 live 迁移到 localhost 服务器后,Wordpress 页面未加载显示“找不到对象”。我已通过在数据库表中替换它们来配置 URL 以使用 localhost。我可以很好地加载 wordpress 主页和仪表板(管理面板),但是当我尝试加载页面时它返回错误。

仪表板加载

页面未加载

.htaccess 文件似乎完全没问题。

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /appe/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /appe/index.php [L]
</IfModule>

# END WordPress

我什至尝试在wp-config.php 中添加这些内容(尽管我已经在数据库中更改了 URL)

define('WP_HOME','http://localhost/appe/');
define('WP_SITEURL','http://localhost/appe/');

但似乎没有任何效果。这里有什么问题?

【问题讨论】:

    标签: php wordpress wordpress-theming custom-wordpress-pages


    【解决方案1】:

    我找到了解决方案。我从仪表板导航到 Settings >> Permalinks 并通过单击 Save Changes 按钮再次保存该页面。现在页面加载正常!

    【讨论】:

      【解决方案2】:

      我从仪表板导航到 设置 >> 固定链接 >> 常用设置 >> 帖子名称并保存点击保存更改按钮再次打开页面。

      例如:https://i.stack.imgur.com/IXzyd.jpg

      【讨论】:

      • 我已经比你早一个小时回答了。再次发布相同的答案有什么用?
      猜你喜欢
      • 2018-09-07
      • 2021-03-01
      • 2018-10-15
      • 1970-01-01
      • 1970-01-01
      • 2019-11-09
      • 2017-12-20
      • 1970-01-01
      • 2013-07-11
      相关资源
      最近更新 更多