• Hi,

    I have a CSS file in /wp-content/uploads/gppro/ which is used to modify the theme. In this folder there is a .htaccess file with the following content:
    Options -Indexes
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !\.(css)$ [NC]
    RewriteRule .* – [F,L]

    It should prevent access to any files accept css files. Unfortunately, I cannot access any files in that folder, only if I delete .htaccess, since there is only one css file in there, I am fine with that solution. However, .htaccess with the above content is appearing again, after 1-2 days. I don’t know where it is coming from.

    Any ideas?

  • The topic ‘htaccess files on wp-content reappearing’ is closed to new replies.