I have been following this http://zendframework.github.io/zend-expressive/cookbook/using-a-base-path/
I have application under directory structure like this
/(root)
-webApp
- (other directory)
-public
Following above guide works if i use subdomain pointing toward webApp. But it does not work if i follow directory structure.
http://webapp.example.com - works if it points to webApp
http://example.com/webApp - It does show 404 error (route cant find anything in zend expressive)
I can not use subdomain here. so it must be the second way which i need to done.
EDIT:
I have tried with this htaccess. it is in application root (/webApp/.htaccess). It seems like this htaccess is not matching and not routing the request to public
directory.
RewriteEngine On
RewriteRule webApp/(.*) ./public/$1