Home  >  Article  >  php教程  >  IIS 用ISAPI_Rewrite 隐藏index.php

IIS 用ISAPI_Rewrite 隐藏index.php

WBOY
WBOYOriginal
2016-06-07 11:44:41927browse

IIS 用ISAPI_Rewrite 隐藏index.php 开发者网站:www.574.cc
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

RewriteRule .*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv) $0 [I,L]
RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!/index.php)(?!/admin.php)(.*)$ /index.php/$1 [L]


我用的isapi_rewrite 是Discuz的,同时我是在IIS中针对单点设计的。

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn