我想建立一個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]