我已经在具有自定义结构的WordPress中创建了自定义永久链接
“ localhost / myWebSite /%category%/%postname%/”。
我有多个类别。
当永久链接为'localhost/myWebSite/category/post-name'
时,它可以正常工作。
但是当永久链接为'localhost/myWebSite/parent-category/sub-category/post-name'
时,它会显示找不到页面。
我的htaccess文件是:-
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /umimpex/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /umimpex/index.php [L]
</IfModule>
# END WordPress
我试图更改httpd文件的访问权限以进行重写,但是没有任何效果。