WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Media Library subdomain issue (17 posts)

  1. kallenavn
    Member
    Posted 2 years ago #

    I did install WP-multisite today and everything works as it should, except the media library to the sub domains. The pictures I upload won't show.

    I have the "blogs.dir" in wp-content. What have I done wrong?

  2. Are the pictures actually being uploaded in that folder to the right subfolders?

    Can you see them in the media library or is it just the theme on the front end?

  3. kallenavn
    Member
    Posted 2 years ago #

    Thanks for your reply.

    How it looks in the media library:
    http://i472.photobucket.com/albums/rr89/sondreroe/c9cf6211.png

    Here are the pictures in the blogs.dir folder:
    http://i472.photobucket.com/albums/rr89/sondreroe/36deca79.png

  4. What's in your .htaccess?

  5. kallenavn
    Member
    Posted 2 years ago #

    My .htaccess:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file= [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
  6. Well that's fine. Darn.

    You didn't move this install, did you?

  7. kallenavn
    Member
    Posted 2 years ago #

    No. Installed everything today.

    Argh!

  8. Right click on the images from media library. What URL are they showing?

  9. kallenavn
    Member
    Posted 2 years ago #

    http://test.another.no/files/2012/01/testpic-150x150.jpg

    It's something wrong with the position?

  10. No, that's correct. But it makes me think your server's not handling the added rules in your htaccess correctly. Check your httpd.conf file and make sure allowoverride is set to all.

  11. kallenavn
    Member
    Posted 2 years ago #

    Never heard of httpd.conf? Maybe that's the problem? Where should I add it (public_html right?), and what should be in the file?

  12. It's a server file, not something for your account, but the entire server.

    Have you root access to your server? If not, ask your webhost.

  13. kallenavn
    Member
    Posted 2 years ago #

    I asked my webhoust about httpd.conf:

    AllowOverride Options=ExecCGI,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,Indexes,-FollowSymLinks are enabled.

    these settings are not changeable. however they are also sufficient for multisite to work on our servers, as we have customers who use it successfully.

    It's obviously something I've done wrong? Should I reinstall?

  14. Does it fail on ALL sub blogs or just some?

  15. kallenavn
    Member
    Posted 2 years ago #

    It fails on all sub blogs.

  16. AllowOverride Options=ExecCGI,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,Indexes,-FollowSymLinks are enabled.

    these settings are not changeable. however they are also sufficient for multisite to work on our servers, as we have customers who use it successfully.

    Then go back to them and describe the issue in this thread. Nothing we can do on our end.

  17. kallenavn
    Member
    Posted 2 years ago #

    I did it! I replaced

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file= [L]

    with

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    in the .htacces file.

    Found the answer here.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.