码迷,mamicode.com
首页 > Windows程序 > 详细

win主机wordpress伪静态

时间:2017-07-01 19:27:07      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:repeat   file   via   isa   地址   dmi   map   pos   res   

将一下代码复制到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

 
本文地址:https://www.lisen.me/253.html
版权声明:本文为原创文章,版权归 李森的博客 所有,欢迎分享本文,转载请保留出处!

win主机wordpress伪静态

标签:repeat   file   via   isa   地址   dmi   map   pos   res   

原文地址:http://www.cnblogs.com/ilisen/p/7103109.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!