WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cloaking the primary domain (20 posts)

  1. d_random
    Member
    Posted 3 years ago #

    Hello-

    I have a network setup (with subdomains) and it is working..YAY! It only took me two weeks. :P

    I have all the subdomains mapped to top level domains but I see now that it is very easy to see what the primary domain is. Either by the status bar loading the site or accessing the page source. Is there anyway to hide the primary domain so no one would know what it is?

    Thanks for YOUR time!
    Donny

  2. Depends on which plugin you're using to map domains.

  3. d_random
    Member
    Posted 3 years ago #

    I'm using "WordPress MU Domain Mapping". Is there a plug in that can hide the primary domain?

  4. calisun
    Member
    Posted 3 years ago #

    Actually there is no need to use a plugin to map domains.
    Not only will this method allow you to use subdomains without plugin, but it will also hide the primary domain from the world.
    I have been using this for a while now, and it works great.

    All you have to do is,
    in wp-config.php, change:

    from:

    define( ‘DOMAIN_CURRENT_SITE’, ‘domain.com’ );

    to:

    define( 'DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] );

    Good luck.

  5. Not only will this method allow you to use subdomains without plugin

    Anyone can use SubDomains without a plugin, that's built in.

  6. calisun
    Member
    Posted 3 years ago #

    So what is the need for even having a plug in? I try to avoid any plugins unless it is absolutely necessary.
    Plugins are done by good hearted people, but what happens when they decide to discontinue their work, and the way you build your site depends on that plugin? I have learned a hard lesson with few plugins, such as wp-hive.com
    wp-hive.com developer got a new job and does not have any more time for the plugin.

    My advice, avoid any plugins unless it is absolutely necessary or if you are sure that the developer of that plugin will be there for a long time to continue providing updates so the plugin does not break on the next wordpress update, provide bug fixes and security updates.

  7. You ... don't use plugins for SUB domain mapping. No one does.

    The plugin is for DOMAIN mapping (like pointing domain2.com to your install at domain1.com/subsite)

    That's all.

    And I pinged a couple people. Not a one of us has a clue how your 'fix' handles DOMAIN mapping.

  8. calisun
    Member
    Posted 3 years ago #

    Huh, am I doing something I am not supposed to?
    I have 9 top level domains pointed to one multisite wordpress install without any plugins, and it works great.

    Every time I create a new domain, it gets created as: newdomain.PrimaryDomain.com
    Afterwards I just go to: Network Settings, sites, I click on the new domain, and in "setting" in, Siteurl, I manually change from: newdomain.PrimaryDomain.com to newdomain.com

    And everything works great.

    And the "fix" I gave, it helps hide the Primary domain, so it does not show up, exactly the issue original post was about.

    Besides, I can't take credit for the fix, I found it here:
    http://www.wpwebhost.com/2010/06/simple-domain-mapping-without-any-plugin-in-wordpress-3-0/

  9. No, but for a BRIEF moment you were confusing up subdomains and top level domains ;)

    I had not seen that article on domain mapping before, though! Thanks!

  10. It's not what we call "best practise". and the guys who work on the domain mapping plugin, one of them works for Automattic.

  11. cki
    Member
    Posted 2 years ago #

    I've got WPMU setup and all is working as per the following redirection (both with the method above, and with the publicly available domain mapping plugin installed):

    http://www.subdomain.mainsite.com redirecting to WPMU blog: blogsite.com/subdomain_blog

    I have parked the domain: subdomain.site1.com in plesk onto blogsite.com

    I want to keep the domain name base: http://www.subdomain.site1.com during the whole redirection. How can I achieve this - as at present, using either method - the url in the browser switches to: blogsite.com/subdomain_blog

    Thanks.

  12. Ron Rennick
    MultiSite Guru
    Posted 2 years ago #

    I've got WPMU setup

    Are you running WordPress MU (last version was 2.9.2) or WordPress (3.0 or newer)?

  13. cki
    Member
    Posted 2 years ago #

    Yep, it is: WordPress 3.2.1.
    More testing, so bit more to describe.

    1. I only get above functionality with WordPress MU Domain Mapping plugin installed.

    2. The redirection does actually seem to keep the url: i.e. http://www.subdomain.mainsite.com on redirection - up until any links are clicked - as all hyperlinks (and page url's) are blogsite.com/subdomain_blog format - and are not relative to original domain.

    Am I right in thinking that these domain mapping plugins are really designed for mapping a wordpress.com subdomain (e.g. xyz.wordpress.com to a new domain xyzdomain.com). It's like I'm trying to do it the other way round - i.e. I'm attempting to collect blogs that are essentially on separate domains under one WP network - but make it appear that blogs are still all on separate domains.

  14. It works *similar* to how they do it on wordpress.com - because of course, you canot add plugins there. ;)

    There's a checkbox in the domain mapping plugin about redirecting to the original blog address.

    Also, it could be how you pointed the subdomain in plesk (which is my guess where things went wrong).

  15. Ron Rennick
    MultiSite Guru
    Posted 2 years ago #

    1. I only get above functionality with WordPress MU Domain Mapping plugin installed.

    We haven't renamed the plugin because people would lose track of it in terms of getting updates. For the same reason, the plugin slug isn't changeable.

  16. cki
    Member
    Posted 2 years ago #

    There's a checkbox in the domain mapping plugin about redirecting to the original blog address.

    I've looked through all admin screens I can locate, but I'm not sure which checkbox you are meaning.

    These are the main options in domain mapping:
    # 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.

    I've tried several ways of setting up the dns on Plesk including following all instructions in this article:

    http://davidlaing.com/2008/07/24/domain-mapping-with-wordpress-mu-plesk-apache2-ubuntu/

    When I follow these instructions some other domains of mine on the server are also redirected to the new domain for some reason. It doesn't work any better than just setting up domain parking (to blog.wp3domain.com) on the WP3 network domain - which doesn't affect the other domains on the server.

    Ron, I presume you mean that it's not possible to alter default folder names in the plugin? Just to confirm, all is set as default - and that I am utilising this plugin: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    To clarify, the browser is being directed to wp3install.com/blog from blog.originaldomain.com - except the browser is now in a very different place - url (inc. all links) and no longer in the name space of the blog.originaldomain.com

  17. Hold up a second..

    I'm attempting to collect blogs that are essentially on separate domains under one WP network - but make it appear that blogs are still all on separate domains.

    If you're going to put them on full domains, why are you mapping them to subdomains?

  18. cki
    Member
    Posted 2 years ago #

    OK - so there's a series of blogs on domains - where the blog is just part of the domain. Each domain has a main part of the site, plus an associated blog. The blog part of each site can be on a separate domain, i.e. blog.domain.com or it can be on a subdirectory - domain/blog

    The idea was to pull all the blogs from the various separate together, so they are administrable via one interface and being served from a single instance of WP. Am wanting the blogs to appear as if they are part of their respective domain name spaces - even though they are all being served from a single instance of WP.

  19. Ah, gotcha.

    Yes that can be done. missed a bit in there. ;)

    The idea was to pull all the blogs from the various separate together, so they are administrable via one interface and being served from a single instance of WP.

    i got that, because that's what I do myself. ;D

    # 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.

    check the first one. do not check the second one.

    Ad have you tried mapping a full domain, not a subdomain?

    Ron, I presume you mean that it's not possible to alter default folder names in the plugin? Just to confirm, all is set as default - and that I am utilising this plugin: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    Yes. He also means the name an't be altered in the repo. Even tho it says MU on the plugin, it's multsite in WordPress.

  20. d_random
    Member
    Posted 2 years ago #

    I FINALLY found a plugin the hides the subdomains. Yay!

    http://wpebooks.com/professional-domain-mapping/

Topic Closed

This topic has been closed to new replies.

About this Topic