• I have a multisite set up where sub-sites are sub-domains, but when I hover over My Sites in admin, any links to the sub-sites show subdomain.domain.com, whereas I want subdomain.com instead.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Do you mean you host blahblah.com
    And under the same hosting account/package you have bububu.com and it’s pages beyond the index show as http:// blahblah.com/bububu/products-and-options/

    That is my problem. Hoping we both get answers!

    Thread Starter davehprohoods

    (@davehprohoods)

    No, the multisite is set up for sub-domains. I used the WordPress MU Domain Mapping plugin, then map subdomain.domain.com to subdomain.com. If I log in to subdomain.com/wp-admin, it routes that site properly, but if I go to My Sites > sub-site, it always goes to subdomain.domain.dom/wp-admin. It’s really annoying and I’m not sure how to configure it to just use the mapped sites.

    As far as I can tell, what happens is that WordPress is primarily using the subdomains internally. When you open the admin menu, it goes to subdomain.domain.com and gets redirected from there, so subdomain.domain.com needs to work.

    Unless you haven’t entered a wildcard subdomain (“*.domain.com”) in your DNS, there is no difference in the outcome. There is also no difference between subdomain.domain.com/wp-admin and subdomain.com/wp-admin. What *exactly* is it that you’d like to achieve, and what *exactly+ is the present behaviour?

    If it’s just the cosmetics of the navigation: I don’t care, it’s just the backend. It’s neither user-relevant nor search-engine relevant. There are many more important places that need to consistently use the mapped sites before I’d start worrying about the admin menu.

    If you get a browser error when navigating to subdomain.domain.com/wp-admin, you need to enable the wildcard subdomain (or every subdomain individually). It will still use the subdomain style, but you won’t notice it anymore πŸ™‚

    Otherwise, I’m missing the point.

    Thread Starter davehprohoods

    (@davehprohoods)

    We have a 3.5 install that directs properly to subdomain.com. It was configured before my time so I don’t know exactly how they did it, but it is set up for sub-folders and used a different domain mapping plugin, so is that required to do this right? The main reason I don’t want the sub-domain format to show is for plugin usage and consistent user experience.

    It effects all users (not just admin) regardless of which site they log into, and I don’t want them to see the primary site in the URL with their site as a sub-domain, just the site they have access to as the domain.

    Sorry… as far as I can tell, the domain mapping is done by the plug-ins, so without knowing more about the set-up in general and the plug-in in particular, I’m not sure if there’s help.

    Thread Starter davehprohoods

    (@davehprohoods)

    I followed the instructions here to create a network: http://codex.wordpress.org/Create_A_Network

    All default settings except in relation to URL/path etc.

    Then I ran this plugin: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    With these settings checked in Domain Mapping (+ is checked, – is unchecked):
    – Remote Login
    + Permanent redirect (better for your blogger’s pagerank)
    – User domain mapping page
    – Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)
    + Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    IMO, you should try unchecking:
    Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    We use WP subdomain with the domain mapping plugin too. Funny thing is that our settings are the exact opposite of yours.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    but when I hover over My Sites in admin, any links to the sub-sites show subdomain.domain.com, whereas I want subdomain.com instead.

    That’s not a bug, the plugin doesn’t re-write those. That said they should redirect to the main site, and people won’t really notice. It’s not like you can’t tell you’re on a Multisite anyway.

    To fix it, you’d have have to add in a filter (I don’t know what specifically) to adjust My Sites as well.

    Thread Starter davehprohoods

    (@davehprohoods)

    jkhongusc, that suggestion didn’t fix it, but I found something that sort of worked: unchecking everything but:

    + Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    This made it so that going to subdomain.com and logging into /wp-admin showed correctly, along with hovering over the site title in admin and clicking Visit Site, but nothing I do gets My Sites to show subdomain.com properly… the links always show subdomain.domain.com… so any user of our sub-sites will see the parent site in the URL and their site as a subdomain… I’m seeing no way to fix this. This could break our plugins if they’re checking for subdomain.com…

    That’s precisely my set-up, too. (I’d have to check the plugin settings, though). As far as I can tell, http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ is part of WordPress, even though it’s not part of the standard shipment.

    The external (front-end) links are clean, it’s just the backend that’s affected. I’m worried about users (visitors) and search engines, for the users (sub-site admins) I’m more relaxed.

    Thread Starter davehprohoods

    (@davehprohoods)

    If anybody knows a solution to have WordPress show only the proper subdomain.com links instead of subdomain.domain.com, I would really love to see it. In the meantime I will be looking into hacking it or developing a plugin for it, as this can negatively affect our admin users even if they are not “admin” roles.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    so any user of our sub-sites will see the parent site in the URL and their site as a subdomain

    Sure. But WHY do you see that as a problem? Understanding that may help us help you find an answer πŸ™‚

    As far as I can tell, http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ is part of WordPress, even though it’s not part of the standard shipment.

    It’s a plugin. That’s what plugins are πŸ™‚ They’re parts of WP you add yourself.

    > If anybody knows a solution to have WordPress show only the proper subdomain.com links instead of subdomain.domain.com, I would really love to see it.

    When we configure our subdomains, we never see the subdomain.domain.com anywhere in the admin/network admin areas. We do one other configuration which Mika has said in the past is not necessary or should not be done. But it works for us…

    This is our process for creating a site:
    1) create new site subdomain.domain.com
    2) map to domain subdomain.com
    3) Go to the site’s setting and replace all ‘subdomain.domain.com’ with ‘subdomain.com’

    The site’s setting is located at wp-admin/network/site-settings.php?id=<siteid> -> Settings tab. I believe we change the siteurl and home attributes.

    Thread Starter davehprohoods

    (@davehprohoods)

    I mentioned multiple times why it’s bad to show the domain as a sub-domain to another site to our users. It confuses them and causes copy-and-pasting to be inaccurate and the recipients to be confused and cause the same questions to be asked over and over; sorry, our bad we have to say.

    I don’t understand why there’s no effort to do it properly to begin with, or little desire to do it properly now. WordPress allows multiple sites, it should display them properly in the address bar and in links across all pages. This doesn’t seem like a difficult fix or implementation.

    @davehprohoods

    The best solution it seems for you is to use domain mapping service.

    You just need to install the domain mapping plugin and then get an dedicated Ip to your hosting or server.

    And then you can redirect all of your users userwebsite.yourwebsite.com subdomain to their own private domain.

    I hope it helpd you understand how it works

    Cheers
    [signature moderated]

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘My Sites sub-domains show incorrect URL’ is closed to new replies.