.htaccess 파일은 다음과 같습니다.다시 쓰기 규칙은 이미지 파일 요청을 방지합니다.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^write$ /write.php [L]
RewriteRule ^write/([^/]*)$ /write.php?bid=$1 [L]
RewriteRule (.*)/(.*)/(.*) blog.php?author=$1&title=$2&date=$3
문제는 이미지 파일 요청이 blog.php 파일로 리디렉션된다는 것입니다. 예를 들어 http://domainname.com/images/10005/Brooklyn-Museum.jpg 에 대한 요청은 blog.php로 리디렉션됩니다. 기존의 정적 리소스에 올바르게 액세스하려면이를 수정하는 방법?
그냥 요청이 폴더'images'을 대상으로하는 경우 확인 다른 조건을 추가 할 수 있습니다. – arkascha