The zendframeworkurl route is invalid. can you help me? why? Invalid zendframework route localhosttesttesttest access error 404. Localhostindex. phptesttesttest can be displayed normally. LoadModulerewrite_modulemodulesmod_rewrit zend framework url routing is invalid
What's the reason for helping me?
Invalid zend framework route
When localhost/test is accessed, the error 404 is returned.
Localhost/index. php/test can be displayed normally.
LoadModule rewrite_module modules/mod_rewrite.so this is also set
Index. php also sets the default page.
------ Solution --------------------
If
Localhost/index. php/test can be displayed normally.
However
When localhost/test is accessed, the error 404 is returned.
Is it true that the location of. htaccess is incorrect?
Is it in the same place as index. php?
Content is
RewriteEngine On
RewriteCond % {REQUEST_FILENAME}-s [OR]
RewriteCond % {REQUEST_FILENAME}-l [OR]
RewriteCond % {REQUEST_FILENAME}-d
RewriteRule ^. * $-[NC, L]
RewriteRule ^. * $ index. php [NC, L]
If both are normal. I don't know why,
It is not a configuration issue. It can only indicate that the code is faulty.