【发布时间】:2019-04-25 23:38:37
【问题描述】:
我的 .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>
我正在重定向到主页,但仅限于一个 wordPress 类别。有问题的类别是航空公司。 网址/航空公司/测试/
之前在 .htaccess 中有此行,但已删除。
#RewriteRule ^airlines/(.*)/(.*).png$ ./upload-router.php?folder=$1&airline=$2 [L]
还有重建器 permaLinks。
我可以通过更改 /%category%/%postname%/ 来修复这个错误 到 /%category%xxx/%postname%/,但我当然需要它是原始的。
我也可以通过将类别重命名为航空公司2来修复它
【问题讨论】: