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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter andreawp

    (@andreawp)

    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter andreawp

    (@andreawp)

    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 🙂

    Thread Starter andreawp

    (@andreawp)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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 ‘3.2.1. multisite – /blog and /file’ is closed to new replies.