apache httpd.conf 文件配置问题 (rewrite模块)
环境
centos4 +apache2 + php5
-----------------------------
/etc/httpd/conf/httpd.conf
上述文件中,有如下的配置
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/(.*)$ /index.php?url=$1
</IfModule>
-------------------------------
请问RewriteRule ^/(.*)$ /index.php?url=$1 这条语句
1,[^/(.*)$] 这个正则 会匹配所有的url么?
2,假如匹配所有的url的话,那么会不会形成死循环,反复的匹配?
3,RewriteRule ,能不能让他只匹配一次?
类似下面的语句
match URL into $ with ^/(.*)$
if matched then
set URL = /index.php?url=$1
goto END
endif
匹配一次然后 goto END
----------------------------
其实我的遇到的项目就是
以前 在Zeus Web Server上的项目
现在用 apahce 来做
Zeus上的重定向
match URL into $ with ^/(.*)$
if matched then
set URL = /index.php?url=$1
goto END
endif
怎么改成 apache 上的(用RewriteRule )