WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Shorter URL/paths for multisite blogs/permalinks? (15 posts)

  1. wispsofsmoke
    Member
    Posted 3 years ago #

    I just installed the multisite network and want to have shorter URLs/subdirectories for the additional blogs and permalinks.

    Currently it displays as:

    http://www.example.com/blog1
    http://www.example.com/blog1/blog2
    http://www.example.com/blog1/blog3

    Is there a way to make it show up just as http://www.example.com/blog2, http://www.example.com/blog3, etc.? (fyi, wordpress is installed in the blog1 folder)

    And, the permalinks for blog 1 show up as:
    http://www.example.com/blog1/blog1/post-title

    Is there a way to take out the additional "blog1" in the link? (I'm guessing it's related to the first issue - won't let me change this in the permalinks section)

    Thanks!

  2. Did you install it in the folder blog1?

    Blog1 should be example.com/blog/yyyy/mm/postname

    Blog two would be example.com/blog2/yyyy/mm/postname and so on.

  3. wispsofsmoke
    Member
    Posted 3 years ago #

    yes - everything is installed in folder blog 1.

    however, the url for blog2 still shows up as above - example.com/blog1/blog2 (as do the permalinks).

  4. There's your problem.

    If you installed WordPress in the folder Blog1 then there's no way to have the links NOT show that.

    It's just how MultiSite works. Sorry. Move it to the root (one folder up) and that'll stop.

  5. wispsofsmoke
    Member
    Posted 3 years ago #

    In that case, how does that work if my main site (not in wordpress) is also in the root folder? Am I out of luck?

  6. Pretty much.

    If the stuff in the root is plain html files, you could integrate that in, but otherwise...

  7. wispsofsmoke
    Member
    Posted 3 years ago #

    I think I'll give that a try. Is there any info on how to integrate the root html files?

  8. Depends on what they are. Turning 'em into Pages is the easiest.

  9. wispsofsmoke
    Member
    Posted 3 years ago #

    OK - turned my regular website index page into a wordpress page, and it seems to be working fine (testing it in its original blog1 folder).

    As for moving the wordpress files up one folder to the root, is there a special way to do that for multisite? I've found lots of info on how to change regular wordpress sites to the root folder, but not for multisite . . .

  10. Cuz it's harder... :D Basically, you have to move all the files and then go thru the entire db and remove the folder name from the URL.

  11. wispsofsmoke
    Member
    Posted 3 years ago #

    K, thanks!

    I did at least just figure out how to shorten the post URLs without having to move anything (http://wordpress.org/support/topic/root-directory-blog-for-wordpress-30-main-multisite?replies=19), so one problem easily solved.

    One last question (I hope ;): at some point after the multisite installation, the archives stopped working (I now just get a "not found/no results/search" page when clicking on a monthly archive). Guessing there is a path somewhere that needs to be changed?

  12. Try resaving permalinks.

  13. wispsofsmoke
    Member
    Posted 3 years ago #

    Nope - no dice.

  14. That thread you linked to above was not a "fix" for shortening your URL and whatever you did is mostly likely interfering.

  15. wispsofsmoke
    Member
    Posted 3 years ago #

    I went through the archive code again, and found some "bad" code - all works now!

    thanks for the help and support!

Topic Closed

This topic has been closed to new replies.

About this Topic