請直接新建1個txt文檔,再復制虛橫線之下的代碼內容,粘貼到txt文檔里面保存后,再修改文檔文件名為httpd.ini就可以了。
將httpd.ini文件直接上傳到菜菜互聯FTP空間的WEB文件夾根目錄下,最后在固定鏈接中設置為自己想要的即可使用。
經過菜菜互聯的空間測試暫時沒有錯誤,其他空間商的服務器不一定能正常使用。
注意:這個偽靜態規則文件僅適合WordPress博客使用!
--------------------------------------------------------------------------------------------------------------------------------------------------------
[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 throughRewriteRule /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]