将永久链接更改为/%category%/%postname%/时,出现500个内部服务器错误 [英] 500 internal server error when changing permalink to /%category%/%postname%/

查看:170
本文介绍了将永久链接更改为/%category%/%postname%/时,出现500个内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在wordpress中更改永久链接时出现内部服务器错误.我所做的是

I am getting Internal server error while changing the Permalink in wordpress. What I did was

我在固定链接设置下更改了自定义结构",并给了/%category%/%postname%/

I changed "Custom Structure" under Permalink settings and gave /%category%/%postname%/

它要求我放置一个.htaccess文件,其中应包含以下内容:

It asked me to put a .htaccess with the following content:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase ./
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . ./index.php [L]
</IfModule>

然后我的网站无法访问,我收到内部服务器错误. 我启用了我的mod_rewrite.

Then my site become inaccessible i am getting Internal server error. I have my mod_rewrite enabled.

任何帮助将不胜感激.提前致谢.

Any help is greatly appreciated. Thanks in advance.

推荐答案

最后,我弄清楚了问题是由于wp_options表中的home条目引起的.

Finally I figured out the problem it is because of the home entry in wp_options table.

home值设置为./我不知道它是如何设置的.当我删除它时,永久链接可以正常工作.我的主条目没有空白"

The home value is set as ./ I dont know how it got set. When I delete it the Permalinks works perfectly. No my home entry is Blank ""

希望对您有所帮助.

这篇关于将永久链接更改为/%category%/%postname%/时,出现500个内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆