售前咨询

400-884-1138

0592-8069966

售后咨询

0592-5178211

0592-3200777

QQ:4008841138

企业QQ咨询

股票代码:832571

PHP伪静态如何实现重定向?

发布时间:2018-03-14 16:12:12

注:本教程适用IIS版本,把以下内容复制到Rewrite/httpd.ini , 把红色部份更改至您的域名即可。

[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect httpd.ini and httpd.parse.errors files# from accessing through HTTPRewriteCond Host: ^xmisp\.com$RewriteRule (.*) http\://www\.xmisp\.com$1 [R,I]RewriteRule ^/(. ).(html)$ /index\.php\?$1\.html [L]RewriteRule ^/(. ).(xml)$ /index\.php\?$1\.xml [L]访问效果xmisp.com 跳转www.xmisp.com 

如有疑问请联系 技术支持