WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] (Solved) MS Media Lib. rewrite image path thumbs (3 posts)

  1. SnoBBin
    Member
    Posted 3 years ago #

    Hey

    I just created an multisite, and uploaded some pictures too blog2.mydomain.com.

    Tought inn "user2" dashbord->media library i cant see thumbs for images. Tought it works in main blog(mydomain.com).

    File URL: http://blog2.mydomain.no/files/2011/07/Wayfarer.jpg

    Im 100% sure its there : http://mydomain.no/wp-content/blogs.dir/2/files/2011/07/Wayfarer.jpg

    My .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    RewriteEngine off
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath /home/motefsfh/public_html/php.ini
    	<Files php.ini>
    		order allow,deny
    		deny from all
    	</Files>
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    You know whats wrong? Im not that familiar with MS or WP, kinda new here.

    Thnaks in advance for any help :)

  2. SnoBBin
    Member
    Posted 3 years ago #

    After posting i saw that the .htaccess file was a bit strange, edited it too:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    and it worked.

  3. yes, you have three sections in there, each slightly different. :)

    When adding the multisite htaccess rules, they *replace* what was in the file.

Topic Closed

This topic has been closed to new replies.

About this Topic