• 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 https://secondary.com I see the secondary site, on https://main.com, the main one, but I see that all the links of the secondary site look like https://main.com/secondary/link.

    I would really like them to look just like https://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 ??

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

    (@ipstenu)

    ?????? Advisor and Activist

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

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

    Thread Starter webmetender

    (@webmetender)

    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 https://secondary.com/wp-admin/, this post’s permalink looks like https://main.com/secondary/article/.
    And if I create a menu item linking to that post, the link shown in the front-end will be https://main.com/secondary/article/ and not https://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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Uncheck that.

    Thread Starter webmetender

    (@webmetender)

    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…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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?

    Thread Starter webmetender

    (@webmetender)

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

    Even on the back-end, when I edit an article, the permalink shown on the edit page also looks like “https://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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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

    Thread Starter webmetender

    (@webmetender)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘100% transparent multisite on multi domains?’ is closed to new replies.