永久链接不起作用

时间:2016-07-11 09:24:50

标签: wordpress woocommerce permalinks

我想将帖子网址显示为http://domain.com/postcategory/postname 因此,我在自定义结构字段中输入了/%category%/%postname%,如下面的屏幕截图所示。但是,请点击此处的 Hello World!文章,该文章转到404页面:Blog Page (密码:444)

Permalink Settings Screenshot

这是.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

所以最终的网址应该是:http://domain.com/tezhip/hello-world,但我无法让它发挥作用。你们认为这是由于WooCommerce吗?

1 个答案:

答案 0 :(得分:0)

如果您更喜欢使用插件来解决问题,this插件可以帮助您解决问题。