当前位置:首页 > 操作系统 > Windows

在windows服务器上设置301、伪静态(wordpress)_PHP教程

新建一个httpd.ini文件,插入代码:
<span [ISAPI_Rewrite]
RewriteCond Host: ^wuchao.<span cc$
RewriteRule (.*) http:<span //<span www.wuchao.cc$1 [R,I,L]

<span #<span  3600 = 1 hour
CacheClockRate 3600<span 
RepeatLimit 32
<span #<span  解决中文tag问题 
RewriteRule /tag/(.*) /index.php?tag=$1
<span #<span  sitemapxml
RewriteRule /sitemap.xml /sitemap.<span xml [L]
RewriteRule /favicon.ico /favicon.<span ico [L]
<span #<span  For file-based wordpress content (i.e. theme), admin, etc. 
RewriteRule /wp-(.*) /wp-$1<span  [L]
<span #<span  For normal wordpress content, via index.php
RewriteRule ^/$ /index.<span php [L]
RewriteRule /(.*) /index.php/$1<span  [L]
[ISAPI_Rewrite]

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/440227.htmlTechArticle新建一个httpd.ini文件,插入代码: : ^wuchao. .*) http: CacheClockRate 3600 32 RewriteRule /tag/(.*) /index.php?tag=$1 RewriteRule /sitemap.xml /sitemap. /favicon.ic...


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐