win主机wordpress伪静态

将一下代码复制到httpd.ini文件

 
  1. [ISAPI_Rewrite]  
  2. 3600 = 1 hour  
  3. CacheClockRate 3600  
  4. RepeatLimit 32  
  5. # Protect httpd.ini and httpd.parse.errors files  
  6. # from accessing through HTTP  
  7. # Rules to ensure that normal content gets through  
  8. RewriteRule /sitemap.xml /sitemap.xml [L]  
  9. RewriteRule /favicon.ico /favicon.ico [L]  
  10. # For file-based wordpress content (i.e. theme), admin, etc.  
  11. RewriteRule /wp-(.*) /wp-$1 [L]  
  12. # For normal wordpress content, via index.php  
  13. RewriteRule ^/$ /index.php [L]  
  14. RewriteRule /(.*) /index.php/$1 [L]  

后台设置→固定连接填写/%post_id%.html

 
posted @ 2017-07-01 18:29  iamlisen  阅读(327)  评论(0编辑  收藏  举报