相信很多的站長都喜歡 WordPress 做自己的 BLOG~但 WIN 對 WordPress 支援不夠好!比如固連結!系統無故出現 500 錯誤!給我們造成了很大的煩腦!光是百度。 GOOGLE 。一搜一大羅什麼樣的說法都有。但就是問題不能解決!

工具/原料

WordPress 本地執行環境 (或者線上網站空間),並且已安裝好 WordPress,作為測試部落格

至少配備三種瀏覽器,Microsoft Internet Explorer 、 Mozilla Firefox 、 Google Chrome,版本暫時不限,用於測試網頁是否顯示正常

一個文字編輯器用於編寫程式碼,Dreamweaver 、 UltraEdit 、 NotePad++、 Vim 等,不推薦使用記事本 步驟/方法

步驟

1 、以下呢本人親測做了此總結比較簡單!
如何讓 WIN 主機的使用者在架設 WordPress-BLOG 實現固連結。和去除無緣無故系統 500 錯誤!

2 、第一步: 首先讓虛擬主機空間商把你的 WordPress 的 404 頁面. 指向 WEB 內的 404.php . 如果是伺服器側自行指向. 有的虛擬主機呢有控制面板的話. 也可以從控制面板裡指向 WEB 內的 404.php.

3 、第二步: 在根目錄裡. 建立 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 WordPresscontent (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]

4 、第三步: 在根目錄裡建立 web.cofing 檔案. 內容如下:

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

5 、第四步: 固連結的自定義本人用的是/%postname%.html
以上幾步做完就 OK 了~感謝大家支援.