내 기본 '젠드'응용 프로그램이 기본 구조젠드와 htaccess로
/zend + webroot
/application
/config
/library
/public
.htaccess
index.php
을 가지고 있으며, 기본 htaccess로는 ./public/index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
를 통해 다양한 컨트롤러/액션 세부 사항을 리디렉션
나는 지금 웹 루트는 'ZE 이상 공유 호스트로 이동 한 응용 프로그램을
http://domain/index.php
액세스하려면이 기본 URL을 사용 nd '루트.
/webroot
/zend
/application
/config
/public
index.php
.htaccess
하지만 난 단지 내가
http://domain/zend/index.php
을 사용할 수 있도록 원하는 htaccess로 리디렉션가이 URL
http://domain/zend/public/index.php
를 통해 내 응용 프로그램에 액세스 할 수 있습니다.
그리고 URL 요청을 리디렉션하기 위해 .htaccess 파일을 조정할 수 있는지 궁금합니다. 나는 이 tutorial을 읽을 수는 있지만 내가 didn를, 나
/webroot
/zend
.htaccess
/application
/config
/library
/public
index.php
에 대한 t 작업이이 경우
RewriteEngine On
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]
수 누군가 자리 아무것도에서의 .htaccess 내용입니까?
나는 당신의 방법을 시험해 보았습니다. 그러나 웹 페이지는 모든 형식화 (CSS 등의 접근)를 잃었습니다. 해골 응용 프로그램 – ChrisBorg
을 사용하고 있습니다. emeraldjava가 제공하는 링크에 대한 자습서가 실제로 저에게 효과적이었습니다. 그 중 하나가해서는 안되는 잘못된 점이 있습니까? – ChrisBorg
@Rob Allen 저에게 도움이됩니다. 하나의 quetion, basePath를 전역 적으로 설정하여 공개 파일을 얻을 수있는 방법은 무엇입니까? 감사. – DS9