WordPress.org

Support

Support » Multisite » [Resolved] Image Upload Problems on Subdomain

[Resolved] Image Upload Problems on Subdomain

  • I am having trouble uploading images to my subdomain since upgrading to 3.0. The subdomain was added just prior to the upgrade, then after upgrade I removed it completely and started from scratch – long, irrelevant story.

    Image uploads show as a red x in “Media” and when I follow the URL to the image, I receive a 404 error.

    My .htaccess is as follows:

    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]

    Upload path: /wp-content/blogs.dir/4/files/
    Upload URL path: http://buzz.modernmamaz.com/files
    Fileupload URL: http://buzz.modernmamaz.com/files

    Example image URL: http://buzz.modernmamaz.com/files/2010/12/ModernMamazBannerBuzz1.jpg

    Any help would be VERY appreciated!

Viewing 15 replies - 1 through 15 (of 31 total)
  • Correction: They are NOT uploading correctly to my main site either.

    Hello, I am francais and speak not about English, I use Reverso,

    I have exactly the meme probléme,
    No concern(marigold) on the pemier site and everything sous domain,
    Are identical has jenFunk

    Just for information, I use WP 3.0.1 converted in Mu
    I have 95 under domain and the first one works him(her) perfectly,
    Thank you for the brought assistant

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    Image URLS are rewritten like that on purpose – can you give the the exact location on the server of the image that’s not showing up? There will be a /wp-content/blogs.dir/ part in the string.

    Hello,
    I understands(includes) that it is necessary to give the place
    But in that she(it) files,

    Saddened for my English,
    The translation is not magnificent lol

    Hello Andrea

    I think that I everything not understood has the question,
    Possible of etre the simplest possible for the translation francais ^^ is you it
    Thank you

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    @michel si vous écrivez d’autres en français, je peux comprendre certaines d’entre elles

    🙂

    Merci de votre aide Andréa

    Donc dans Média du site principale
    pas de souci l’image s’affiche et le liens de l’image est du style:
    http://monsite/france/wp-content/uploads/2010/12/pics.jpg

    j’ai 95 sous domaine, (95 departement francais)

    si je vais sur un autre departement,
    dans media
    l’image ne s’affiche pas,
    elle n’est pas télécharger

    url de l’image est:
    http://(nom du sous domaine.mon site/france/files/2010/12/pics.jpg

    et donc pas d’image

    Merci de ton aide
    sur le forum francais, on as pas trouver!!

    I have just seen that the image is good to download in the file in question,
    But in “media” the address to indicate is not good

    – here is the address of the image in my file:

    http://monsite.fr/france/wp-content/blogs.dir/2/files/2010/12/1.bmp

    – that to indicate in “media”

    http://83.monsite.fr/france/files/2010/12/1.bmp

    Quelqun know that it is the file or to find the chaine to ask

    I have to look in fonction.php without finding

    Thank you for your help(assistant)

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    Check permissions on the uploads folder and see if they are actually ON the server somewhere.

    If yes, check and make sure your htaccess file is the same as the one given when you set up your network, under Tools -> Network.

    If that’s fine, check the permissions on the .wp-inckludes/ms-files.php file. try setting it to 755 and see if that works.

    Is believed in me in it:):):):)

    No, nothing makes for it,

    The config.php is identical has that to ask in the config reseau
    The htacces is identical also

    Ms-spin him(it) is good in 755,

    I put has in the daytime the reseau,
    Empty masks(hiding places)
    To update, nothing makes for it,

    The address of the url always not maid, is missing the “blogs.dir” and the continuation(suite)

    Thank you

    my “.htacces”

    #

    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]

    # 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]

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www. [NC]
    RewriteCond %{HTTP_HOST} !^monsite.fr$ [NC]
    RewriteCond %{HTTP_HOST} !^monsite.fr$ [NC]
    RewriteCond %{HTTP_HOST} ^([^.]*). [NC]
    RewriteCond %{DOCUMENT_ROOT}/%1 !-d
    RewriteRule ^(.*) http://monsite.fr/ [L,R=301]

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    The address of the url always not maid, is missing the “blogs.dir” and the continuation(suite)

    That is what is supposed to happen – the htaacess file rewrites the wp-content/blogs.dir/ID#/files/whatever to the other address.

    Can you access the image at wp-content/blogs.dir/ID#/files/ ?

    Yes images was to download in the file

    Http: // monsite.fr/france/wp-content/blogs.dir/files/2010 in ……. image.jpg

    I can not the inserer in an article or a page or the other one

    Because his(her,its) url is

    Http: // (under domain) .monsite.fr/france/files/2010/12/2/imag es.jpg

    I think you need to move some of that up ABOVE WordPress…

    This should be ABOVE the WP calls (though I’m not sure what it’s supposed to do):

    RewriteCond %{HTTP_HOST} !^www. [NC]
    RewriteCond %{HTTP_HOST} !^monsite.fr$ [NC]
    RewriteCond %{HTTP_HOST} !^monsite.fr$ [NC]
    RewriteCond %{HTTP_HOST} ^([^.]*). [NC]
    RewriteCond %{DOCUMENT_ROOT}/%1 !-d
    RewriteRule ^(.*) http://monsite.fr/ [L,R=301]

    And your WordPress section should be this:

    # BEGIN WordPress
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘[Resolved] Image Upload Problems on Subdomain’ is closed to new replies.
Skip to toolbar