[allowoverride to All时,Wordpress网站崩溃

问题描述 投票:1回答:1

问题是我的wordpress网站可以运行,但是页面显示404页面未找到错误,所以我按照以下步骤操作:

  1. 已启用mod_rewrite
  2. 我的.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服务器,但似乎无济于事。

php wordpress .htaccess mod-rewrite apache2
1个回答
0
投票
您找到解决方法了吗?
© www.soinside.com 2019 - 2024. All rights reserved.