[wp-hackers] Multi-domains on Multi-site

Abdussamad Abdurrazzaq abdussamad at abdussamad.com
Tue Oct 15 17:49:23 UTC 2013


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

On 10/15/2013 10:36 PM, Nicholas Ciske wrote:
> 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	
>
> On Oct 15, 2013, at 12:15 PM, Abdussamad Abdurrazzaq wrote:
>
>> 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.
>>
>> On 10/15/2013 09:40 PM, Filippo Pisano wrote:
>>> 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
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list