When using zendframework, you need to use the URL redirection feature to unify the portal for site access.
The server software I'm using is the apache2.4,url redirection rule I wrote it this way:
Rewritecond%{request_uri}!^.* (\.js|\.gif|\.jpg|\.png|\.css|\.html) $
Rewriterule ^/.*$/index.php
However, there is a problem with this writing, because the URL is rewritten as/index.php, so the site will not be able to pass in the URL passed parameters.
So my question now is: Is there any way to redirect all access to index.php and also to pass parameters at the URL?
Reply to discussion (solution)
Rewriterule ^/? (. *) $/index.php$1
Rewriterule ^/? (. *) $/index.php$1
After this change, there is nothing to match, I use Apache 2.4. The URL is not overridden according to the page returned
Actually, you should use his own rewrite rules.
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ iindex.php/$1 [qsa,pt,l]