Rule n° 218 - 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

Solution technique

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

Moyen de contrôle

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.