Preventing Patreon Plugin from changing .htaccess
-
I tried installing the Patreon plugin for the first time yesterday, and found that it broke all the images on my site that had been uploaded to the WordPress uploads folder. This problem persisted even after deactivating and deleting the Patreon plugin. After an hour or two of looking for what was wrong with my images, I found the Patreon plugin put this code into the .htaccess file, which changed the permission settings of all the images.
# BEGIN Patreon WordPress Image Protection
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} (\.png|\.jpg|\.gif|\.jpeg|\.bmp)
RewriteCond %{HTTP_REFERER} !/wp-admin/ [NC]
RewriteRule ^wp-content/uploads(.*)$ index.php?patreon_action=serve_patron_only_image&patron_only_image=$1 [QSA,L]
# END Patreon WordPressDeleting this code fixed the problem. Before I reinstall the plugin, is there any setting that prevents Patreon’s plugin from changing image permissions and/or preventing it from accessing the .htaccess? If not, can I delete this code from the .htaccess without the plugin putting it back in?
- The topic ‘Preventing Patreon Plugin from changing .htaccess’ is closed to new replies.