加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 运营中心 > 网站设计 > 教程 > 正文

WordPress处理伪静态问题和百度地图冲突问题

发布时间:2022-06-26 12:14:24 所属栏目:教程 来源:互联网
导读:解决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
  解决wordpress伪原创的问题:
 
  1、wordpress后台设置,如下:
 
  自定义结构:http://www.phpfensi.com/%post_id%.html
 
  2、在网站根目录建立一个文件httpd.ini,代码如下:
 
  [ISAPI_Rewrite]
  
  # 3600 = 1 hour
  
  CacheClockRate 3600
  
  RepeatLimit 32
  WordPress处理伪静态问题和百度地图冲突问题
  # 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.
 
 

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读