Wordpress Custom post 使用连字符分隔的 slug 输入永久链接 returns 404 错误
Wordpress Custom post type permalink with a hyphen separated slug returns a 404 error
我有一些 post 类型返回 404 错误,其中 slug 是由连字符分隔的多个单词 'posttype/item-one'。
使用自定义 Post 类型 UI。
我认为这与下面我的 .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
我是否需要“自定义重写 slugin 自定义 post 类型设置。
发现更改为新客户 post 输入 ui slug 解决了问题。 'cat' 因为鼻涕虫引起了问题。
我有一些 post 类型返回 404 错误,其中 slug 是由连字符分隔的多个单词 'posttype/item-one'。
使用自定义 Post 类型 UI。
我认为这与下面我的 .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
我是否需要“自定义重写 slugin 自定义 post 类型设置。
发现更改为新客户 post 输入 ui slug 解决了问题。 'cat' 因为鼻涕虫引起了问题。