Home > Article > Backend Development > .htaccess到httpd.ini伪静态规则的转换解决思路
.htaccess到httpd.ini伪静态规则的转换
apache下的.htaccess文件
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
转换成ISAPI_Rewrite.dll 1.3.0.16版本的组件的httpd.ini的规则是什么样的?
如下这样是无效的:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
是不是有什么语法不支持,或需要改动的