简体   繁体   English

WordPress的永久链接设置不起作用

[英]Wordpress Permalink Settings not working

I have installed a test blog on RichBloggers Domain. 我已经在RichBloggers域上安装了一个测试博客。 I am trying to use permalinks. 我正在尝试使用永久链接。 With My current settings as follow 我的当前设置如下

在此处输入图片说明

The site links works but with query string in url like 该网站链接有效,但在url中使用查询字符串,例如

在此处输入图片说明

But when I change the setting to post name 但是当我将设置更改为发布名称时

在此处输入图片说明

My Links give me error 我的链接给我错误

在此处输入图片说明

Here is my .htaccess 这是我的.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

What am I missing? 我想念什么?

Finally I figured it out. 终于我明白了。 The Hosting Server I am using has old Plesk on it and doesn't have cPanel so the PHP version is outdated. 我正在使用的主机服务器上有旧的Plesk,并且没有cPanel,因此PHP版本已过时。 URL rewrite is not working because Mod_rewrite is not enabled. URL重写不起作用,因为未启用Mod_rewrite。

check by deactivating other plugins once and check by setting theme from WordPress default theme. 通过一次停用其他插件进行检查,并通过设置WordPress默认主题为主题进行检查。 and then by setting permalink again. 然后再次设置永久链接。 check if this issue still coming. 检查此问题是否仍然存在。 otherwise it will be conflict issue. 否则将是冲突问题。

Simple click again the permalinks post name radio button and save it, it will solve your problem now. 再次简单地单击永久链接的帖子名称单选按钮并保存,它将立即解决您的问题。 Check if the category exist if not then it would throw that error. 检查类别是否存在,否则将引发该错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM