问题是我的wordpress网站可以运行,但是页面显示404页面未找到错误,所以我按照以下步骤操作:
我的.htaccess文件看起来像这样:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
3-当我编辑/etc/apache2/apache2.conf中的值时
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
至
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
只要我更改上述值,网站就会崩溃,我也试图重新安装apache服务器,但似乎无济于事。