Bruges for at vise billeder fra live server på lokalt setup.
# BEGIN Clever hack to show production images on dev site # Force image styles that have local files that exist to be generated. RewriteCond %{REQUEST_URI} ^/app/uploads/.*$ RewriteCond %{DOCUMENT_ROOT}/app/uploads/%1 -f RewriteRule ^(.*)$ $1 [QSA,L] # Otherwise, send anything else that's in the files directory to the production server. RewriteCond %{REQUEST_URI} ^/app/uploads/.*$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://yourdomain.com/$1 [QSA,L] # END Clever hack to show production images on dev site