WordPress解决伪静态问题和百度地图冲突问题

解决wordpress伪原创的问题:

1、wordpress后台设置,如下:

自定义结构:http://www.phpfensi.com/%post_id%.html

2、在网站根目录建立一个文件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.html /sitemap.html [L]
  9. RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]
  10. RewriteRule /sitemap.xml /sitemap.xml [L]
  11. RewriteRule /favicon.ico /favicon.ico [L]
  12. # For file-based wordpress content (i.e. theme), admin, etc.
  13. RewriteRule /wp-(.*) /wp-$1 [L]
  14. # For normal wordpress content, via index.php
  15. RewriteRule ^/$ /index.php [L]
  16. --phpfensi.com
  17. RewriteRule /(.*) /index.php/$1 [L]

这个代码上面已经加了两段,是解决百度地图无法显示的问题,直接复制就OK.