我目前使用的是Wordpress 5.1版本,然后是busiprof主题,我没有安装任何其他版本,也没有安装插件。
问题是,每次我去Settings> Permanent Links>Post Name>保存更改,然后我尝试发布一个帖子,它不会离开我,也不会更新它。但在创建或更新主题时,上面的类别和标签字段将消失。
我激活了重写模块,当然,每次我遵循前面提到的路线,它都会创建一个包含以下内容的.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>
# 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我看不出有什么问题。
发布于 2019-03-03 21:44:04
我不知道为什么在.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如果不起作用,只需将.htaccess文件全部删除并重新保存固定链接即可。
https://stackoverflow.com/questions/54962313
复制相似问题