apache - 404 error when accessing index.php - zend framework 2 -
i have installed zend framework , made running (apache server) im experiencing following problem. whenever try access http://localhost/public/index.php 404 error. when try http://localhost/public/ or http://localhost/public/index.php/ normal zf2 skeleton application displayed without problems. can me how make not display 404 on index.php? file sure exists.
here .htaccess im using:
rewriteengine on # following rule tells apache if requested filename # exists, serve it. rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] # following rewrites other queries index.php. # condition ensures if using apache aliases # mass virtual hosting, base path prepended # allow proper resolution of index.php file; work # in non-aliased environments well, providing safe, one-size # fits solution. rewritecond %{request_uri}::$1 ^(/.+)(.+)::\2$ rewriterule ^(.*) - [e=base:%1] rewriterule ^(.*)$ %{env:base}index.php [nc,l] directoryindex index.php
Comments
Post a Comment