djangosnippets.org: Latest snippets tagged with 'domains'https://djangosnippets.org/tags/domains/2007-10-02T20:07:37.703480-05:00Redirect Multiple Domains to a Single Domain
2007-10-02T20:07:37.703480-05:00rpoultonhttps://djangosnippets.org/snippets/434/<p>Often, you may register more than one domain name for your website, which may have a primary domain of <em>mysite.com.au</em>:</p>
<ol>
<li>mysite.com</li>
<li>my-site.com</li>
<li>mysite.net</li>
<li>mysite.co.uk</li>
</ol>
<p>For SEO and brand awareness reasons, (remember: every page should have exactly one URL) you want every visitor to end up on your primary domain, …</p>
Freely redistributable