我将服务器操作系统从CentOS 7更改为Ubuntu 18.4服务器,复制了所有文件,并安装了新的apache网络服务器,并导入了数据库。网站“主页”工作正常,但是一旦我单击页面,就会出现404错误。这不在以前的Web服务器上。 版本列表: PHP 7.2.17-0ubuntu0.18.04.1 Apache / 2.4.29(Ubuntu)
我已经对Google进行了快速搜索,唯一可以罚款的是.htaccess文件,它可能是错误的,尝试了对Wordpress进行不同配置的尝试,但仍然没有成功,请参阅我的
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
仅当/ Dir在网站上被调用或直接调用时,错误404
root@joeldig:/etc# apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
root@joeldig:/etc#
答案 0 :(得分:0)
您是否尝试刷新永久链接? 在设置下