日期:2014-05-17  浏览次数:20443 次

.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] 

是不是有什么语法不支持,或需要改动的

------解决方案--------------------
联系空间商的技术支持吧。
我买的西部数码的空间,一直怎么都不行,后来问空间商,才明白要先开启……
而且写法还很特别。