·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设问答 >> 如何让WIN主机架设Wordpress固链接和去除500错误

如何让WIN主机架设Wordpress固链接和去除500错误

作者:佚名      网站建设问答编辑:admin      更新时间:2022-07-23

相信很多的站长都喜欢wordpress做自己的BLOG~但WIN对wordpress支持不够好!比如固链接!系统无故出现500错误!给我们造成了很大的烦脑!光是百度、GOOGLE,一搜一大罗什么样的说法都有。但就是问题不能解决!

以下呢本人亲测做了此总结比较简单!

如何让WIN主机的用户在架设wordpress-BLOG实现固链接和去除无缘无故系统500错误!

第一步:首先让虚拟主机空间商把你的wordpress的404页面。指向WEB内的404.php 。如果是服务器侧自行指向。有的虚拟主机呢有控制面板的话。也可以从控制面板里指向WEB内的404.php.

第二步:在根目录里。建立httpd.ini文档。内容如下

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

第三步:在根目录里建立web.cofing文档。内容如下:

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<httpErrors errorMode=”Detailed” />
<asp scriptErrorSentToBrowser=”true” />
</system.webServer>
</configuration>

第四步:固链接的自定义本人用的是/%postname%.html

以上几步做完就OK了~感谢大家支持。

原创文章转载请注明:www.sunnichina.cn