php - zend framework 2 project in server doesn't work -


working zf2, have configured project in local env, deployed same code server, there..only indexcontroller action working. www.project.com/public/ works,

but when access other modules like

www.project.com/public/country doesn't work.  

enter image description here

this means mod_rewrite rules rewrite requests index.php file not being used. means either:

  • the .htaccess file not uploaded (check public folder on server see if it's there)
  • the .htaccess file being ignored (check allowoverride vhost on live server)

also, public/ should not appear in urls. unless using shared hosting (where can tricky), want point vhost's document root @ public folder.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -