Skip to content

Instantly share code, notes, and snippets.

@niksudan
Last active September 22, 2016 08:51
Show Gist options
  • Save niksudan/24388f3482860d7318d1 to your computer and use it in GitHub Desktop.
Save niksudan/24388f3482860d7318d1 to your computer and use it in GitHub Desktop.
Local uploads folder [WordPress]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp-content/uploads/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) http://example.com/wp-content/uploads/$1 [L,P]
</IfModule>
@niksudan
Copy link
Author

niksudan commented Sep 22, 2016

This needs to be placed in the wp-content/uploads/ directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment