相信很多的站長都喜歡 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 了~感謝大家支援。