Support » Multisite » [Resolved] 3.2.1. multisite – /blog and /file

[Resolved] 3.2.1. multisite – /blog and /file

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)


    Now my posts that are refered to the main direcotry (blog1)are in /blog directory and can’t be moved or modifie. How can I modifie this directory into /blog-vino?

    Yes, by default if you use subdirectory WordPress Mutlisite, your primary site adds /blog/ to your URL, and you cannot remove it.

    Also changing the /files/ foldername is complicated, and I wouldn’t suggest doing it.



    Thank you for the quick response.

    It’s only to have a seo friendly url, and to have less keywords like “files”. Anyway I hope that in future these changes can be made.

    Thank you

    Moderator Ipstenu (Mika Epstein)


    Those URLs won’t be any more or less SEO friendly than the ones you’re suggesting. At that point in the game, they really don’t matter a bit.



    Ok, to change /file directory for the upload file on blog2 I modified functions.php in wp-includes, line 2251

    $url = str_replace( UPLOADS, 'NEW FOLDER', $url );

    and htaccess

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

    now seems to work 🙂

    Now with the wordpress update 3.3 the line is 2259
    $url = str_replace( UPLOADS, ‘NEW FOLDER’, $url );

    Just for the record, editing CORE files is never the right thing to do.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] 3.2.1. multisite – /blog and /file’ is closed to new replies.
Skip to toolbar