WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
[Plugin: Better WP Security] Images are forbidden on multisite (2 posts)

  1. Kerfred
    Member
    Posted 2 years ago #

    On the secondary sites, the images are not shown and a forbidden message is displayed.

    This comes from these lines in the .htaccess:
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]

    which are not compatible with this one:
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    Do you have a fix for it ?
    Thanks.

    http://wordpress.org/extend/plugins/better-wp-security/

  2. Kerfred
    Member
    Posted 2 years ago #

    The solution is to add:
    RewriteCond %{SCRIPT_FILENAME} !^(.*)wp-includes/ms-files.php
    just before:
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic