웹 서버에 zf2가 있는데 Apache에서 시작 위치를 변경할 수 없습니다. /httaccess/public/index.php에서 경로가 변경된 public_html로 복사했지만 CSS 스타일 및 js에 문제가 있습니다. .htaccess에서 오류없이 만들 수 있습니까?Zf2 변경 시작 위치
htaccess로 :
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting or installed the project in a subdirectory,
# 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 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}/public/index.php [L]
.htaccess를 표시 할 수 있습니까? –
게시물 – Sewek
이 (가) 편집되었으며 문제점은 무엇입니까? 좀 더 정확하게 할 수 있습니까? –