Answer the question
In order to leave comments, you need to log in
How does htaccess ZendSkeletonApplication work?
I'm trying to understand how the ZendSkeletonApplication .htaccess file works
https://github.com/zendframework/ZendSkeletonAppli...
If everything is clear with the first part of it, then the opposite is true with the second.
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*)$ %1index.php [NC,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question