I’ve added this code in my .htaccess
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ /mobile/ [L,R=302]
and I have all of the images in the http://www.exemple.com/imgs folder.
When I try to load those images from my mobile, the path seems wrong because of that redirection and even if I call the image with the full path, it’s not working.
Is there any workaround so the redirection works and loads images from the path where there are and not trying to load them with forcing the redirection?
Add this in the same order:
also, did you miss,
$1after/mobile/inRewriteRule ^(.*)$ /mobile/ [L,R=302]?