【发布时间】:2009-05-15 04:21:14
【问题描述】:
以下网址可以正常工作:
http://localhost/index/index/
但是,当它们像这样进来时,我无法 _get$ 变量:
http://localhost/index/index/test/1234/test2/4321
-但是-
但是,我可以通过以下方式 _get$ 变量:
http://localhost/index.php?test=1234&test2=4321
http://localhost/index?test=1234&test2=4321
http://localhost/index/index?test=1234&test2=4321
为什么当我使用 /index/index/var/val 方式时变量没有显示出来?
您将在下面找到我的 .htaccess 文件。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
【问题讨论】:
标签: php zend-framework .htaccess mod-rewrite