WordPress解决伪静态问题和百度地图冲突问题
解决wordpress伪原创的问题:
1、wordpress后台设置,如下:
自定义结构:http://www.phpfensi.com/%post_id%.html
2、在网站根目录建立一个文件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.html /sitemap.html [L] RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L] 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] --phpfensi.com RewriteRule /(.*) / index .php/$1 [L]这个代码上面已经加了两段,是解决百度地图无法显示的问题,直接复制就OK.
查看更多关于WordPress解决伪静态问题和百度地图冲突问题 - W的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did8912