Heim  >  Artikel  >  Backend-Entwicklung  >  .htaccess到httpd.ini伪静态规则的转换解决思路

.htaccess到httpd.ini伪静态规则的转换解决思路

WBOY
WBOYOriginal
2016-06-13 11:12:141347Durchsuche

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

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


------解决方案--------------------
联系空间商的技术支持吧。
我买的西部数码的空间,一直怎么都不行,后来问空间商,才明白要先开启……
而且写法还很特别。
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn