【发布时间】: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