|
本帖最后由 jimboy 于 2010-1-17 18:13 编辑
我的服务器是Windows Server2003,结果想伪静态化,原先在Apache写的都不好使了,不知道IIS下怎么写?
之前Apache下是这么写的(.htaccess):
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
#RewriteBase /
RewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ index.php?/$1 [L,QSA]
现在IIS下我是这么写(httpd.ini),但是不好使:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteRule ^(.*)(\.html)$ index\.php?/$1 |
|