WordPress.org

Ready to get started?Download WordPress

Forums

WP Multisite File Upload/Media Issue (1 post)

  1. Patrick Nommensen
    Member
    Posted 2 years ago #

    Hello,

    There's an issue on one of my client's websites and I was hoping to find some help here in the WP community.

    I have a WP multisite setup and the primary domain is here. Additional sites in the network are (1) here and (2) here.

    Site (2) is not displaying any images/media.

    This is the htaccess file in the root directory of the primary domain.

    <ifmodule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^gpstrackingcanada\.com$ [NC]
    RewriteRule ^(.*)$ http://www.gpstrackingcanada.com/$1 [R=301,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]
    
    deny from 70.29.62.166
    # END WordPress

    The links on (2) site are not correct. For example, the featured image for the post on the home page has a link such as:

    http://vehicletrackingontario.com/wp-content/themes/LondonLive/thumb.php?src=/files/2010/07/www.GPSTrackingCanada.com-GPS-fleet-vehicle-Tracking-GPS-Vehicle-Tracking-Toronto-GTA-Ontario-Canada-Geotab-Telus-Asset-Resource-Management-a1.jpg&w=590&h=250&zc=1&q=100

    This displays a message saying "A TimThumb error has occured" (yes, occurred is misspelled in the message :-))

    but it should be pulling the image from :

    http://www.gpstrackingcanada.com/wp-content/blogs.dir/7/files/2010/07/www.GPSTrackingCanada.com-GPS-fleet-vehicle-Tracking-GPS-Vehicle-Tracking-Toronto-GTA-Ontario-Canada-Geotab-Telus-Asset-Resource-Management-.jpg

    Any help or insight would be very appreciated! Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Patrick Nommensen
  • This topic is not resolved
  • WordPress version: 3.4.1