에 나는 하위 디렉토리에 젠드 프레임 워크 프로젝트를 설정하고 싶습니다 :젠드 프레임 워크는 하위 디렉토리
/public_html
/public_html/here_i_want_to_setup_zf
문서 루트는/public_html이 있습니다. 젠드 프레임 워크 프로젝트는 URI를 통해 다음과 같이 URI를 통해 액세스 할 수 있습니다.
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]