[英]mod_rewrite to ISAPI Rewrite
my .htaccess code as below: 我的.htaccess代码如下:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
ErrorDocument 404 http://www.intelligent-t.com/404
How to create httpd.ini file with the same above roles ??? 如何创建具有上述相同角色的httpd.ini文件?
There is no alternative for ErrorDocument directive and RewriteCond %{REQUEST_FILENAME} !-f in ISAPI_Rewrite 2, but the closest config will look like this: ISAPI_Rewrite 2中没有ErrorDocument指令和RewriteCond%{REQUEST_FILENAME}!-f的替代项,但是最接近的配置如下所示:
[ISAPI_Rewrite]
RewriteRule /(?!(?:list|of|physical|files|and|folders))([^\.]+)$ /$1.php [I,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.