Discussion:
Multi-domains on Multi-site
Filippo Pisano
2013-10-15 16:40:23 UTC
Permalink
Hello Hackers,

I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/project/multi-domains/) but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.

Is there a way to achieve this? Any suggestions on hooks I could use?

Thank you! :)


Filippo Pisano
Mika A Epstein
2013-10-15 17:14:31 UTC
Permalink
You can map as many domains as you want to a site on Multisite, but only
one site is going to be 'primary'

http://wordpress.org/plugins/wordpress-mu-domain-mapping/ works just
fine for that.

Are you trying to have two domains that are 100% the same, with
different URLS? That way lies SEO madness.
Post by Filippo Pisano
Hello Hackers,
I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/project/multi-domains/) but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.
Is there a way to achieve this? Any suggestions on hooks I could use?
Thank you! :)
Filippo Pisano
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Abdussamad Abdurrazzaq
2013-10-15 17:15:53 UTC
Permalink
The standard free domain mapping plugin can do this:

http://wordpress.org/plugins/wordpress-mu-domain-mapping/

You can map multiple domains to the same site but one of the domains
should be set as the primary. Other domains will redirect to the primary
one.
Post by Filippo Pisano
Hello Hackers,
I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/project/multi-domains/) but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.
Is there a way to achieve this? Any suggestions on hooks I could use?
Thank you! :)
Filippo Pisano
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Nicholas Ciske
2013-10-15 17:36:31 UTC
Permalink
Domain Mapping plugins can generally map multiple domains to any *sub-site* ... but cannot map additional domains the main site/blog -- something has to be absolute. That way lies madness and redirect loops -- the main site is the main site and can really only have one domain associated with it. You can use a throwaway (non public) domain for the main site (e.g. a .info domain) and run all sites as sub-sites to enable domain mapping for the 'main public' domain.

e.g.
example.info
- example.com <- this is your main public site, but is actually a subsite in MS
- other.net
...

As Abdussamad said, only one mapped domain can be primary and all other domains mapped to a sub-site will flow towards the primary domain (e.g. via a redirect or the users first click). This is pretty fundamental to how WP is architected (e.g. it won't even allow www. and no www. -- you have to choose one to redirect the other to).

If you want multiple domains to point to your main blog domain... use DNS redirects (or .htaccess redirects before the WP rewrite rules *to the main domain* if you need to redirect specific URLs).

Avoid mapping multiple domains to serve the same content -- e.g. using a hook to break WP's preference for a single canonical domain per site -- as Mika said, that way lies SEO madness (and duplicate content penalties).
https://support.google.com/webmasters/answer/66359?hl=en

Basically, any domain + URL combo should ideally serve mostly unique content... if you have multiple domains/urls serving the exact same content, you're probably doing_it_wrong() and will not likely find a plugin to assist you in hosing your SEO ;-)

_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
Post by Mika A Epstein
http://wordpress.org/plugins/wordpress-mu-domain-mapping/
You can map multiple domains to the same site but one of the domains should be set as the primary. Other domains will redirect to the primary one.
Post by Filippo Pisano
Hello Hackers,
I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/project/multi-domains/) but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.
Is there a way to achieve this? Any suggestions on hooks I could use?
Thank you! :)
Filippo Pisano
Abdussamad Abdurrazzaq
2013-10-15 17:49:23 UTC
Permalink
You can use a sub-domain as your network home aka throwaway blog. When
installing multi site choose the subsites as sub folders option.

http://codex.wordpress.org/Create_A_Network
Post by Nicholas Ciske
Domain Mapping plugins can generally map multiple domains to any *sub-site* ... but cannot map additional domains the main site/blog -- something has to be absolute. That way lies madness and redirect loops -- the main site is the main site and can really only have one domain associated with it. You can use a throwaway (non public) domain for the main site (e.g. a .info domain) and run all sites as sub-sites to enable domain mapping for the 'main public' domain.
e.g.
example.info
- example.com <- this is your main public site, but is actually a subsite in MS
- other.net
...
As Abdussamad said, only one mapped domain can be primary and all other domains mapped to a sub-site will flow towards the primary domain (e.g. via a redirect or the users first click). This is pretty fundamental to how WP is architected (e.g. it won't even allow www. and no www. -- you have to choose one to redirect the other to).
If you want multiple domains to point to your main blog domain... use DNS redirects (or .htaccess redirects before the WP rewrite rules *to the main domain* if you need to redirect specific URLs).
Avoid mapping multiple domains to serve the same content -- e.g. using a hook to break WP's preference for a single canonical domain per site -- as Mika said, that way lies SEO madness (and duplicate content penalties).
https://support.google.com/webmasters/answer/66359?hl=en
Basically, any domain + URL combo should ideally serve mostly unique content... if you have multiple domains/urls serving the exact same content, you're probably doing_it_wrong() and will not likely find a plugin to assist you in hosing your SEO ;-)
_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
Post by Mika A Epstein
http://wordpress.org/plugins/wordpress-mu-domain-mapping/
You can map multiple domains to the same site but one of the domains should be set as the primary. Other domains will redirect to the primary one.
Post by Filippo Pisano
Hello Hackers,
I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/project/multi-domains/) but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.
Is there a way to achieve this? Any suggestions on hooks I could use?
Thank you! :)
Filippo Pisano
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Filippo Pisano
2013-10-15 18:01:24 UTC
Permalink
Thank you all for your quick and exhaustive responses. The throwaway
approach may be really what I need. I think I'll try and map two different
domains to the same sub-blog.
The SEO side of things is not a problem because the second domain (which is
not public) is only served internally in our network because we expose some
web services to other software.

Thank you :)



Filippo Pisano
cel: 3291821355 / skype: filippopisano


On Tue, Oct 15, 2013 at 7:49 PM, Abdussamad Abdurrazzaq <
Post by Abdussamad Abdurrazzaq
You can use a sub-domain as your network home aka throwaway blog. When
installing multi site choose the subsites as sub folders option.
http://codex.wordpress.org/**Create_A_Network<http://codex.wordpress.org/Create_A_Network>
Post by Nicholas Ciske
Domain Mapping plugins can generally map multiple domains to any
*sub-site* ... but cannot map additional domains the main site/blog --
something has to be absolute. That way lies madness and redirect loops --
the main site is the main site and can really only have one domain
associated with it. You can use a throwaway (non public) domain for the
main site (e.g. a .info domain) and run all sites as sub-sites to enable
domain mapping for the 'main public' domain.
e.g.
example.info
- example.com <- this is your main public site, but is actually a subsite in MS
- other.net
...
As Abdussamad said, only one mapped domain can be primary and all other
domains mapped to a sub-site will flow towards the primary domain (e.g. via
a redirect or the users first click). This is pretty fundamental to how WP
is architected (e.g. it won't even allow www. and no www. -- you have to
choose one to redirect the other to).
If you want multiple domains to point to your main blog domain... use DNS
redirects (or .htaccess redirects before the WP rewrite rules *to the main
domain* if you need to redirect specific URLs).
Avoid mapping multiple domains to serve the same content -- e.g. using a
hook to break WP's preference for a single canonical domain per site -- as
Mika said, that way lies SEO madness (and duplicate content penalties).
https://support.google.com/**webmasters/answer/66359?hl=en<https://support.google.com/webmasters/answer/66359?hl=en>
Basically, any domain + URL combo should ideally serve mostly unique
content... if you have multiple domains/urls serving the exact same
content, you're probably doing_it_wrong() and will not likely find a plugin
to assist you in hosing your SEO ;-)
_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
http://wordpress.org/plugins/**wordpress-mu-domain-mapping/<http://wordpress.org/plugins/wordpress-mu-domain-mapping/>
You can map multiple domains to the same site but one of the domains
should be set as the primary. Other domains will redirect to the primary
one.
Post by Filippo Pisano
Hello Hackers,
I need to map multiple domains to a multisite installation. What I need to
do is map domain-one.com and domain-two.com to the same blog id. I've tried
the "Multi Domains" plugin (
https://premium.wpmudev.org/**project/multi-domains/<https://premium.wpmudev.org/project/multi-domains/>)
but it doesn't do what
I really need because it maps multiple domains to multiple blog ids. I need
to map different domains all to the main blog.
Is there a way to achieve this? Any suggestions on hooks I could use?
Thank you! :)
Filippo Pisano
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
Continue reading on narkive:
Loading...