jimboy 发表于 2010-1-17 17:43:00

关于windows下伪静态的问题

本帖最后由 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


现在IIS下我是这么写(httpd.ini),但是不好使:

# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
RewriteRule ^(.*)(\.html)$ index\.php?/$1

Hex 发表于 2010-1-17 22:22:45

IIS 安装请参考 http://codeigniter.org.cn/forums/thread-415-1-1.html
其中的方式是目前确实可行的。

yinzhili 发表于 2010-1-19 16:22:25

实在不行的话还是用Apache吧。IIS跑PHP并没有什么优势。
页: [1]
查看完整版本: 关于windows下伪静态的问题