This recipe sets up a permanent (301
) redirect from the "www" version of your site to the root domain (without the "www").
For example, any visitor arriving at www.example.com
will be automatically redirected to example.com
.
Enforcing a single "official" address for your site is a fundamental practice for search engine optimization (SEO), brand consistency, and user experience.
Why install this recipe?
- Improve SEO: Search engines like Google can see
www.example.com
andexample.com
as two separate sites with duplicate content, which hurts your ranking. This redirect clearly indicates which is the main (canonical) address of your site, thus consolidating its authority in one place. - Strengthen brand consistency: A single, short address is more professional, easier for your visitors to remember and share. This ensures your brand is presented consistently across all materials.
- Simplify user experience: By systematically redirecting visitors, you ensure everyone accesses the same version of the site, no matter how they typed the address. This avoids any confusion and ensures that shared links always lead to the right place.
In summary, this redirect is a standard and recommended practice for the technical and marketing health of any website.
How to install this recipe on my website with redirection.io?
Installing this recipe on your website requires the following steps:
- Enter the domain: On the configuration page, enter the domain name for which you want to redirect requests from the "
www
" subdomain to the root domain. Omit the protocol (http://
orhttps://
). - Install the recipe: Click the install button. A new redirection rule will be automatically created for you in "draft" mode.
- Review the rule: If necessary, you can edit the rule before publishing it.
- Publish the rule: Once the rule is reviewed, publish it. Your
www
to root domain redirection will be active on your site in a few moments!