fat free 框架(fff)如果运行在iis上,需要做什么配置?

狂沙lover 发布于 2014/06/19 14:19
阅读 163
收藏 0

这个框架貌似自带路由,(原谅我没有找到相关中文文档),自带了.htaccess文件如下:

# Enable rewrite engine and route requests to framework
RewriteEngine On

# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
# RewriteBase /

RewriteCond %{REQUEST_URI} \.ini$
RewriteRule \.ini$ - [R=404]

RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]



如果希望运行在iis上,是不是需要将这些规则转换为web.config文件规则呢?因为在iis上连基本例子都没运行成功。。。。

加载中
返回顶部
顶部