WordPress.org

Ready to get started?Download WordPress

Forums

Link blog to blog through main menu without parent slug (4 posts)

  1. MIGPRO
    Member
    Posted 1 year ago #

    I have searched the threads and cannot seem to find either a definitive solution or an exact situation, so I decided I would write the post so the experts can see exactly what I am trying to do and perhaps offer the solution I am trying to find.

    I am converting my main site over to wordpress. In addition to the main site, I have several installations of wordpress which were interlinked to the main site.

    Now, I am trying to link from the new wordpress pages menu (using MU) to the existing installations, directly through the main menu on the main installation.

    Domain - http://immunocal.md

    Wanting to create dropdown series under the menu button "Immunocal" (which has the permalink; http://immunocal.md/immunocal). When I create a page named "prostate_cancer" under "Immunocal" as the parent the new page URL is forced to become; http://immunocal.md/immunocal/prostate_cancer

    But, what I am actually trying to do is link directly to another installation with prostate_cancer as the folder, so I have to remove the "immunocal/" part of the URL so that it will call up the other blog, which has the URL http://immunocal.md/prostate_cancer - So, as you can see the permalink is inserting the parent page first and it will not link over.

    I read about a plugin that used to be available... I read that there used to be a way to remove the /blog slug, but that is not possible because of a bug, etc... So, I am writing today to see if there is any new information available and hoping to find a solution to this problem.

    Regards,
    Dave

  2. Oh you can remove the blog slug, but it'll come back if you ever save permalinks again on your main site.

    Go to network admin > sites and edit your main site.

    Scroll down till you find the permalinks, and remove the blog slug.

    Just remember, you will have to do this again if you ever save your permalinks for your main site.

  3. MIGPRO
    Member
    Posted 1 year ago #

    Thank you for your reply!

    I actually found a plugin that works perfectly called "Permalink Editor" so my initial problem is taken care of, without the issue you mentioned because the URL's do not change back.

    However, now I have decided to migrate the installations into the MU because of the time saved with plugins, etc. and most importantly with the database of files that would have to be uploaded separately to each installation if I kept them separate.

    So, this plugin "Permalink Editor" does not seem to be able to access the structure in the secondary blogs when they are under the MU. Unless I am just not seeing where to make the changes.

    I tried in the location you mentioned earlier, but that does nothing... I tried directly in the Settings - Permalinks area... no luck!

    Any suggestions?

  4. Aaand that would be why we don't recommend that plugin for multisite ;)

    The thing is, I have a feeling you're doing this wrong.

    The way multisite works (for subfolders) is like this:

    Main site: domain.com
    Posts: domain.com/blog/permalink-postname
    Pages: domain.com/pagename

    Subsite: domain.com/subsite
    Posts: domain.com/subsite/permalink-postname

    Etc etc.

    So ... If you want a URL to be domain.com/prostate_cancer, then you put the page in domain.com and not domain.com/subsite

    However, if you want a SITE to be named prostate_cancer, then you make the site ... domain.com/prostate_cancer

    That's all. You should never be monkeying around with the permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic