Skip to content

Instantly share code, notes, and snippets.

@polevaultweb
Last active August 29, 2015 14:03
Show Gist options
  • Save polevaultweb/1b7d02c39b366c11b07f to your computer and use it in GitHub Desktop.
Save polevaultweb/1b7d02c39b366c11b07f to your computer and use it in GitHub Desktop.
WordPress .htaccess images
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp-content/uploads/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) http://livesite.com/wp-content/uploads/$1 [L,P]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment