win主機wordpress偽靜態
阿新 • • 發佈:2017-07-01
ets mit 偽靜態 sta class nor content res rep
版權聲明:本文為原創文章,版權歸 李森的博客 所有,歡迎分享本文,轉載請保留出處!
將一下代碼復制到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]
後臺設置→固定連接填寫/%post_id%.html
本文地址:https://www.lisen.me/253.html版權聲明:本文為原創文章,版權歸 李森的博客 所有,歡迎分享本文,轉載請保留出處!
win主機wordpress偽靜態