×

WordPress伪静态IIS规则

优畅主题 Wordpress主机 2014-01-24 13:51 3,967 0 条评论

首先本地调试好所有内容然后上传到服务器,小编使用的是IIS,就以IIS为主介绍吧,其他都差不多通用~~~~~~~~~~~~~

进入首台固定链接设置,然后设置你需要的链接格式,以上是我原先网站的链接格式,经过调试后一切和原先一样。

然后给IIS添加 WordPress IIS伪静态 httpd.ini文件, 在httpd目录新建一个httpd.ini文件,然后复制下面的代码进去》保存。

[ISAPI_Rewrite]
 # Defend your computer from some worm attacks
 #RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O] 
 # 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 /tag/(.*) /index\.php\?tag=$1 
RewriteRule /software-files/(.*) /software-files/$1 [L] 
RewriteRule /images/(.*) /images/$1 [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] RewriteRule /(.*) /index.php/$1 [L]

如果本文对你有帮助,你可以扫描右边的二维码打赏,谢谢支持
联系优畅:uctheme#qq.com (#改为@)
微信订阅号:优畅主题(uctheme)
官网淘宝店:http://uctheme.taobao.com
版权声明:版权归 优畅主题 所有,转载请注明出处!
转载请保留链接: https://www.uctheme.com/host/614.html
谢谢支付宝打赏
谢谢微信打赏

品牌创立:2012-11-18优畅主题

优畅主题成立于2012年11月18日,专业Wordpress导购主题开发商,拥有多年Wordpress主题设计经验,专门为淘宝客和导购客站长量身打造高端赚钱模板,我们注重细节,有着严谨的开发态度,一切从客户角度出发,如果你也喜欢 WordPress导购主题,欢迎和我们一起交流!


8 + 6 = ?

目前还没有评。

切换注册

登录

忘记密码 ?

您也可以使用第三方帐号快捷登录

切换登录

注册