我想建立一个Zend框架项目中的子目录:Zend框架的子目录
/public_html
/public_html/here_i_want_to_setup_zf
文档根目录为/的public_html。我想通过这样的URI访问Zend Framework项目:
http://example.com/here_i_want_to_setup_zf
我该如何编辑我的htaccess文件?
RewriteEngine On
# Exclude some directories from URI rewriting
#RewriteRule ^(dir1|dir2|dir3) - [L]
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]