WordPress偽靜態規則httpd.ini


請直接新建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 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]



 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM