The following url works ok:
http://localhost/index/index/
However, I am unable to _get$ variables when they come in like this:
http://localhost/index/index/test/1234/test2/4321
-but-
I can however, _get$ the variables these ways:
http://localhost/index.php?test=1234&test2=4321
http://localhost/index?test=1234&test2=4321
http://localhost/index/index?test=1234&test2=4321
Why does are the variables not showing up for me when I use the /index/index/var/val way?
Below you will find my .htaccess file.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Zend Framework doesn’t make data in the request uri available as $_GET variables, to access them, use the key in a controller:
Or shorter