에 내가 지금까지 사용하고 특정 폴더, 즉에 이미지와 다른 정적 파일에 대한 URL을 다시 작성하는 방법은 :htaccess로 - RewriteRule의 정적 파일
RewriteRule \.(woff|ttf|svg|js|ico|gif|jpg|png|css|htc|xml|txt)$ /MyFolder/$1
하지만이 작동하지,
은 도움을 주시기 바랍니다.------------------- 업데이트 ---------------------
그래서 지금은이 :
RewriteCond %{HTTP_HOST} ^(www.)?exmpale.com$
RewriteCond %{REQUEST_URI} !^/exmpale.com/
RewriteRule ^(.*\.(woff|ttf|svg|js|ico|gif|jpg|png|css|htc|xml|txt))$ /exmpale.com/$1
RewriteCond %{HTTP_HOST} ^(www.)?exmpale.com$
RewriteRule !\.(woff|ttf|svg|js|ico|gif|jpg|png|css|htc|xml|txt)$ /exmpale.com/index.php
이렇게 폴더를 exmpale로 리디렉션 이미지는 작동하지만 지금이 솔루션은 지금까지 작동하지 않습니다 위의 index.php에 다른 모든를 다시 작성하고 싶습니다.
환호, 이/마르신 어쩌면 이것은 당신이 원하는
거의 거기, 제 질문을보십시오 – Marcin
+1 간결하고, 단서 포착을 위해. –
내 업데이트를 살펴보고 알려주십시오. – Marcin