WordPress.org

Support

Support » Plugins and Hacks » iThemes Security (formerly Better WP Security) » [Plugin: Better WP Security] Images are forbidden on multisite

[Plugin: Better WP Security] Images are forbidden on multisite

  • 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/

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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Better WP Security] Images are forbidden on multisite’ is closed to new replies.
Skip to toolbar