PHONE: +351 215 960 020
  • LANGUAGES  
  • PT
  • EN

MindSEO

  • Homepage
  • MindSEO
    • About MindSEO
    • Clients
  • Solutions
    • MindSEO REPORT
    • MindSEO S.O.N.A.R.
    • MindSEO AUTOMATA
    • MindSEO ADVERTISING
  • Resources
  • Contacts
REPORT GRÁTIS
  • Home
  • Resources
  • Articles
  • Websites: WWW or not? Technical Tips & Best Practices
 
Websites with WWW
MindSEO
Thursday, 20 March 2025 / Published in Articles, Resources

Websites: WWW or not? Technical Tips & Best Practices

The choice between using “www” or not in a website’s address is primarily a matter of preference and branding. However, regardless of the chosen option, it is essential to ensure that the site correctly responds to both versions and that there is proper redirection to the primary version.

 

WWW vs. Non-WWW

From a technical perspective, “www” is a subdomain, whereas the non-“www” version directly refers to the root domain. Some organizations prefer to include “www” for compatibility and DNS structuring reasons, while others opt for the non-“www” version for shorter and more modern URLs.

Regardless of the choice, a 301 redirect should be implemented to avoid content duplication and ensure that search engines index only one version of the site.

 

HTTPS: A Mandatory Requirement

Unlike “www,” HTTPS is mandatory. Web security demands that all websites use HTTPS to protect user data, improve SEO, and avoid security warnings in modern browsers.

 

Proper HTTPS Redirection: Step by Step

Redirections should be implemented strategically, particularly due to the HSTS (HTTP Strict Transport Security) header, which instructs browsers to always use HTTPS. To avoid issues, ensure the correct redirection order:

  1. Redirect HTTP to HTTPS (e.g., from http://example.com to https://example.com).
  2. Redirect to the preferred version (with or without WWW) (e.g., from https://example.com to https://www.example.com or vice versa).

All redirections should be permanent (using HTTP 301 status codes) to signal to search engines that the change is permanent.

 

Recommended HSTS Configuration

Once the website correctly responds via HTTPS and is stable, it is recommended to configure HSTS to enhance security.

HSTS is a crucial security measure that protects users against protocol downgrade and man-in-the-middle attacks (MITM). Without HSTS, an attacker could force an insecure connection via HTTP and potentially collect or modify data. By enabling HSTS, the browser is instructed to always establish secure connections via HTTPS, significantly reducing this risk.

 

A typical HTTP header configuration should be:

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

 

Explanation of parameters:

  • max-age=31536000: Keeps HSTS active for one year (in seconds).
  • includeSubDomains: Applies the rule to all subdomains.
  • preload: Indicates that the site can be included in browsers’ HSTS preload list.

Before activating HSTS, it is crucial to ensure that all subdomains use HTTPS to prevent accessibility issues.

Additionally, we recommend submitting the domain to Google’s HSTS preload list by verifying proper HSTS configuration and registering it at https://hstspreload.org.

 

Websites with WWW, or not, is a branding decision, but the technical implementation must be correct to avoid SEO and accessibility issues. On the other hand, HTTPS is mandatory, and its implementation should be complemented by proper redirections and HSTS to strengthen website security. By following these best practices, a secure and optimized experience is ensured for both users and search engines.

If you have any questions, feel free to contact us. MindSEO has a team of specialists always available to help.

What you can read next

century21-case-study-mindseo
Case Study – Century 21
Social Media - MindSEO
Social Media: does your company make any of these mistakes?
User Interface Design - MindSEO
5 benefits of user interface design

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Recent Posts

  • covid-19: MIndSEO Working Remotely

    COVID-19: MindSEO working remotely

    At MindSEO, we value, above all, the lives and ...
  • Google Outage with services like Analytics and Ads suffering - MindSEO

    Google Outage: what happened?

    On June 2, 2019, several Google services broke ...
  • Adobe Summit 2019 with innovation regarding e-commerce and user experience - MindSEO

    Ideas and Goals Revealed at Adobe Summit 2019

    The Adobe Summit 2019 EMEA (EMEA stands for Eur...
  • Google Marketing Live 2019 highlighted Google Ads updates - MindSEO

    Google Marketing Live and Google I/O 2019: What’s New?

    This month’s Google Marketing Live event saw th...
  • E-commerce Trends: Personalisation

    E-commerce Trends: Personalisation

    Retail e-commerce sales worldwide are expected ...

More Resources

  • Articles
  • Case Studies
  • Industry Updates

About MindSEO

We provide Digital Intelligence Solutions from Search Engine Optimization to Programmatic Advertising and Advanced Analytics, in order to optimize Digital Ecosystems and Upgrade Businesses.

Quick Links

  • About Us
  • Clients
  • Careers
  • Resources
  • Contacts

Solutions

  • REPORT
  • S.O.N.A.R.
  • AUTOMATA
  • ADVERTISING

Contacts

Address:
R. do FeiraPark 50, Edf. FeiraPark, 2.2
4520-632 S. João de Ver, Portugal

Phone: +351 215 96 00 20
Cost of a call to the fixed network according to your tariff.

  • GET SOCIAL
MindSEO

© 2025 MindSEO. All Rights Reserved. | Privacy Policy | S.O.N.A.R. Privacy Policy

TOP