下面的代码来自 zf 命令自动生成的 .htaccess 文件。给出了描述,但对我来说它反弹了。
# 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 ^(/.+)(.+)::$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
当我们在共享主机上有一个 zend 项目并想要解析路径时,它是否与解决方案有关index.php
?请解释。