0
http://files.domain.com에 대한 모든 PDF 요청을 내 서버에 구축 한 index.php 파일을 통해 전달하려고합니다. 처음에는 테스트가 필요합니다. 나는 내 index.php를하지만 404 오류를 표시하지 않는 URL에 갈 때간단한 htaccess URL 전달이 작동하지 않습니다.
RewriteEngine On
RewriteBase/
RewriteRule file2.pdf index.php [R]
: 그래서 함께이 htaccess로했습니다. 나는 무엇이 일어나는지 모르겠다 ... 어떤 제안?
.htaccess와 index.php가 올바른 위치에 있는지 확인했습니다. http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
: