Picto thématique

Rule n° 211 - The address of the website and of its subdomains works with and without a www prefix.

When typing directly into the domain.com format, some browsers turn to https://www.domain.com, others to https://domain.com. It frequently happens that the latter address returns an error, even on very large sites. Think about it.

#Development #Server and performance #Eco-conception

Goal

  • Allow users to reach the site’s homepage, even if they forget to enter the “www” prefix
  • Reduce the energy impact related to the consultation of the site

Implementation

Configure the server so that it manages addresses without www (routing).

Control

On some of the pages checked:

  • Remove the prefix “www” in the address of the page, within the URL bar of your browser
  • Check that you still have access to the website

Warning: some browsers hide the www prefix by default. The test should therefore be done by adding http:// or https:// in front of the address while omitting the prefix, for example: https://opquast.com.

By Opquast - Read the license


Discover Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us

We offer a 1 hour free discovery module.