I am experiencing strange behavior with my Zend Framework application.
I run this url, hoping to get index controller run the 1234567890 action.
http://hello.com/index/1234567890?test=http%3A%2F%2Fworld.com%2Findex.php
I however get exception like this:
Message: Invalid controller specified (4567890)
And strangely all URLs that are on the page now link to:
http://hello.com/index.php/index/1234567890
Instead of:
http://hello.com/index/1234567890
Notice that the index.php string that gets falsely injected into URLs has 9 characters, it is same number as gets cut of the index/1234567890 string to get the wrong controller name.
Another thing is that injected index.php correlates with index.php in url encoded get parameter from the example.
What is wrong? Is it a bug in Zend? Or am I doing something wrong?
This is my .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]