Skip to content

Instantly share code, notes, and snippets.

Forked from brichards/.htaccess
Last active February 1, 2017 20:47
What would you like to do?
Tell Apache to serve missing images from a remote server. Props
# BEGIN serve images from production
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.*\.(js|css|png|jpe?g|gif|ico|svg))$1 [NC,P,L]
# END serve images from production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment