Support » Networking WordPress » New Multisite User – Can't see any images!

  • Resolved HerbInfo



    I have a website running the latest version of wordpress, hosted by HostGator. I want to setup some other sites using subdomains and recently installed MultiSite using the step-by-step provided in this ebook:

    With a little tweaking, everything seemed to install correctly. Images that were already on the initial site are fine, but I can’t see any newly uploaded images either on the websites themselves or in the Dashboards. I can’t even see preview images for the different themes unless I click on them to get the pop-up preview. I have already disabled all plugins and reverted back to the default TwentyTen theme as suggested in other threads involving photo issues, with no luck.

    My .htacess file reads as follows:

    # Google Analytics Integration – Added by cPanel.
    <IfModule mod_substitute.c>
    AddOutputFilterByType SUBSTITUTE text/html
    Substitute “s|(<script src=’/google_analytics_auto.js’></script>)?</head>|<script src=’/google_analytics_auto.js’></script></head>|i”
    # END Google Analytics Integration
    RewriteCond %{HTTP_REFERER} !^*$ [NC]
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteCond %{HTTP_REFERER} !^*$ [NC]
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ – [F,NC]

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Any advice would be most appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Correction: This issue seems to be limited to my subdomains and the network dashboard only. New files uploaded to the original site via its dashboard show up fine.

    RewriteCond %{HTTP_REFERER} !^*$ [NC]
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteCond %{HTTP_REFERER} !^*$ [NC]
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

    Do you know what that is?

    That says ‘Unless my URL is or, you don’t get any images!’ It’s called hotlink protection 🙂

    Use this instead:

    # ultimate hotlink protection
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{HTTP_REFERER}     !^$
     RewriteCond %{REQUEST_FILENAME} -f
     RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$           [NC]
     RewriteCond %{HTTP_REFERER}     !^https?://([^.]+\.)?newalternativeherbal\. [NC]
     RewriteRule \.(gif|jpe?g?|png)$                             - [F,NC,L]

    That will allow your subdomains as well.


    It worked! Thank you so much! I’m a writer, not a coder, lol. 😛

    Running a Multisite Network will make you a kinda-coder pretty fast 🙂 It’s more intricate than running a single install, for sure!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New Multisite User – Can't see any images!’ is closed to new replies.