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

WBOY
Release: 2016-06-13 11:12:14
Original
1330 people have browsed it

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

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


------解决方案--------------------
联系空间商的技术支持吧。
我买的西部数码的空间,一直怎么都不行,后来问空间商,才明白要先开启……
而且写法还很特别。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!