Skip to content

Instantly share code, notes, and snippets.

@bennuttall

bennuttall/.htaccess

Created May 23, 2020
Embed
What would you like to do?
wordpress dev .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wp-content/uploads/(.*)$ https://bennuttall.com/wp-content/uploads/$1 [L,R=302]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment