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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -