WordPress.org

Ready to get started?Download WordPress

Forums

100% transparent multisite on multi domains? (9 posts)

  1. webmetender
    Member
    Posted 7 months ago #

    Hi!

    I use everyday WordPress Multisite in subfolders locally for theme and plugin development and everything works just fine.

    As I like the way Multisite allows to jump from one site to another I decided to aggregate some of my personnal websites into a single online multisite WordPress install, in subfolders. I also installed the domain mapping plugin to allow access to those sites from different domains.

    Let's call the main site main.com, and a single subsite secondary.com.

    Everything went just fine, I've got no 404 problems, on http://secondary.com I see the secondary site, on http://main.com, the main one, but I see that all the links of the secondary site look like http://main.com/secondary/link.

    I would really like them to look just like http://secondary.com/link

    Here comes my question: i tried some config combinaisons for the domain mapping plugin and none allowed me to 100% get rid of 'main.com' in the links of secondary sites: is it in any way possible?

    Right now I have ticked in domain mapping plugin options:
    - Permanent redirect (better for your blogger's pagerank)
    - Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    Other options are unticked.

    WP version: 3.8.1
    WP MU domain mapping plugin version: 0.5.4.4

    Thank you for reading :)

  2. Everything went just fine, I've got no 404 problems, on http://secondary.com I see the secondary site, on http://main.com, the main one, but I see that all the links of the secondary site look like http://main.com/secondary/link.

    Did you search/replace post content after mapping to change the old links?

  3. webmetender
    Member
    Posted 6 months ago #

    Hi Mika,

    Did you search/replace post content after mapping to change the old links?

    Yes, I created articles and pages, included cross-links in the content, created menu item linking to those pages and articles, all this after the mapping job and all visible links refer to the main site.

    As it is a first try for me I don't know for exemple if secondary domain's articles and pages permalinks, as shown on edit pages, are meant to refer to the main site or not.

    Right now, if I create a post from http://secondary.com/wp-admin/, this post's permalink looks like http://main.com/secondary/article/.
    And if I create a menu item linking to that post, the link shown in the front-end will be http://main.com/secondary/article/ and not http://secondary.com/article/: is that "normal"? How to force permalinks to be generated by WP without refering to the main website?

    My domain mapping config is still as described in my initial post.

    Thank you for reading,

    Adam

  4. "Disable primary domain check. Sites will not redirect to one domain name. "

    Uncheck that.

  5. webmetender
    Member
    Posted 6 months ago #

    ok I tried it, I then only have "Permanent redirect" ticked and the links on secondary.com website still look like "main.com/secondary" when I pass the pointer over them.

    I still don't get if what I'd like to get is in anyway possible or if what I call an "issue" is actually the way domain mapping is intended to work...

  6. links on secondary.com website still look like "main.com/secondary" when I pass the pointer over them.

    On the front end of the site or the backend?

  7. webmetender
    Member
    Posted 6 months ago #

    On the front-end, when I hover a link it looks like "http://main.com/secondary/article", but after clicking the link the redirection works and the browser shows "http://secondary.com/article".

    Even on the back-end, when I edit an article, the permalink shown on the edit page also looks like "http://main.com/secondary/article".

    Anyway, I feel right now like I'm going to try once again a fresh install to check if I missed something, i'll share again after that.

  8. Are these generated links? Like the ones to tags and posts?

    That really sounds like you didn't make the domain primary on /wp-admin/network/settings.php?page=dm_domains_admin

  9. webmetender
    Member
    Posted 6 months ago #

    Yes these are WP generated links.

    As I said, I'll leave this multisite multi-domain project away for few days and come back after a fresh installation of the whole network.

Reply

You must log in to post.

About this Topic