Skip to main content
 Web开发网 » 站长学院 » Wordpress教程

关于WIN主机放wordpress出现问题一些心得!

2021年07月13日6770百度已收录

朋友们大家好!

相信很多的站长都喜欢wordpress做自己的BLOG~但WIN对wordpress支持不够好!比如固链接!系统无故出现500错误!给我们造成了很大的烦脑!光是百度。GOOGLE。一搜一大罗什么样的说法都有。但就是问题不能解决!

   以下呢本人亲测做了此总结比较简单!

   如何让WIN主机的用户在架设wordpress-BLOG实现固链接。和去除无缘无故系统500错误!

   第一步:首先让虚拟主机空间商把你的wordpress的404页面.指向WEB内的404.php .如果是服务器侧自行指向.有的虚拟主机呢有控制面板的话.也可以从控制面板里指向WEB内的404.php.

   第二步:在根目录里.建立内容如下

  [ISAPI_Rewrite]

  # 3600 = 1 hour

  CacheClockRate 3600

  RepeatLimit 32

  # Protect

  # from accessing through HTTP

  # Rules to ensure that normal content gets through

  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]

  RewriteRule /(.*) /index.php/$1 [L]

   第三步:在根目录里建立web.cofing文档.内容如下:

  <?xml version=”1.0″ encoding=”UTF-8″?>

  <configuration>

  <system.webServer>

  <;

  <asp scriptErrorSentToBrowser=”true” />

  </system.webServer>

  </configuration>

   第四步:固链接的自定义本人用的是/%postname%.html

  以上几步做完就OK了~感谢大家支持.

  固定链接: 关于WIN主机放wordpress出现问题一些心得! | 青岛网站建设+复制链接

  原创文章转载请注明: 关于WIN主机放wordpress出现问题一些心得! | 青岛网站建设

  关键字: wordpress, 原创

评论列表暂无评论
发表评论
微信