Wordpress URL意外重定向

时间:2015-07-09 11:32:49

标签: wordpress .htaccess redirect permalinks

我的网站网址为:http://abcd.com/index.php

当我开场时,我不明白为什么 http://abcd.com/index.php/welcome/我被重定向到: http://abcd.com/welcome/ 它不存在并显示404

我的.htaccess是:



# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /index.php/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php/index.php [L]
</IfModule>

# END WordPress
&#13;
&#13;
&#13;

你认为错在哪里?

此致

1 个答案:

答案 0 :(得分:0)

我使用了像/index.php/%postname%/这样的永久链接结构 它工作正常,但其他格式没有。 我通过更改我的虚拟主机中的配置,添加默认的wordpress .htaccess内容,使其他永久链接格式有效。重新启动apache,我的永久链接和所有其他东西一样工作...... 10小时的疼痛

相关问题