run zend expressive from subdirectory with apache .htaccess -
i have been following http://zendframework.github.io/zend-expressive/cookbook/using-a-base-path/
i have application under directory structure this
/(root) -webapp - (other directory) -public
following above guide works if use subdomain pointing toward webapp. not work if follow directory structure.
http://webapp.example.com - works if points webapp
http://example.com/webapp - show 404 error (route cant find in zend expressive)
i can not use subdomain here. must second way need done.
edit:
i have tried htaccess. in application root (/webapp/.htaccess). seems htaccess not matching , not routing request public
directory.
rewriteengine on rewriterule webapp/(.*) ./public/$1
Comments
Post a Comment