为什么在更改Wordpress永久链接设置后,我开始收到404错误?

时间:2015-02-20 14:25:45

标签: wordpress apache http-status-code-404 permalinks

在我更改了Wordpress 4.1固定链接设置后,每个页面或帖子都出现404错误。

这是我的.htaccess文件:

# 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

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000

Options +FollowSymlinks

我尝试将此添加到我的网站 - 可用的默认文件:

<Directory /var/www/>
    Options +ExecCGI 
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
</Directory>
<Directory /var/www/blog/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
</Directory>

在此之后我得到了500错误。

你能帮助我吗?

0 个答案:

没有答案