how do i redirect all image requests to a specific folder, since my site has some mod rewriting for nicer urls, sometimes when an image is not found it is handled by the main access route, which is wrong, since htaccess should redirect properly.
i already got:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?([^/]*)/?/?([^/]*)/?([^/]*)$ index.php?account=$1&task=$2&object_id=$3&app_type=$4
all image requests should be routed to /public/images/
Thanks in advance.
1 Answer