Intermediate 16 min

Redirect HTTP to HTTPS and manage www

Redirects 301 SEO: force HTTPS, choose www or without www and avoid duplicate content.

#HTTPS#Redirection 301#www#SEO

Ready to start your service? Check offers and order online.

View offers and order

HTTP, HTTPS and www redirections

Unify URLs (https://www.votredomaine.fr or without www) avoid duplicate content SEO and browser warnings on your web hosting Anthony IT Solutions.

Combine SSL panel redirection, .htaccess LiteSpeed rules and CMS settings for a consistent canonical URL.

In summary Enable SSL + HTTPS panel force; choose www or non-www; add .htaccess rules; check loops.

What you need

Order of redirections

Apply in the order: HTTP→HTTPS, then www-apex without loop.

  1. Curl test

    curl -I http://domaine.fr, must end in 301 HTTPS.

  2. Chain

    Max 2-3 jumps redirect.

  3. Search Console

    Declare your favorite property.

  4. CMS URL

    WordPress Site URL = Home URL.

Force HTTPS via panel

  1. SSL section

    HTTPS Force / Redirect option.

  2. Let's Encrypt

    Valid certificate required.

  3. STS

    Advanced option after testing.

  4. Sub-domains

    SSL subdomain.

Rules .htaccess www

  1. RewriteEngine On

    At the top of the file.

  2. To www

    RewriteCond %{HTTP_HOST} !^www. [NC] + RewriteRule https://www.%{HTTP_HOST}%{REQUEST_URI}

  3. To apex

    Inverse: redirect www to non-www.

  4. Backup

    Backup before edit.

WordPress and CMS

  1. General settings

    WordPress URL and Website identical https.

  2. Really Simple SSL

    Plugin if mixed content.

  3. PrestaShop

    Shop Settings → SEO URLs https.

  4. Database

    Search-replace http→https if migration.

Avoid loops

  • HTTPS Panel + redundant .htaccess
  • Proxy Cloudflare Flexible + SSL origin force
  • WordPress URL in http while .htaccess force https
  • Private navigation test
  • **Verification**, see detailed procedures.

Troubleshooting

  • Too many redirects, Conflict panel/.htaccess/Cloudflare.
  • Mixed content, Resources http:// remaining.
  • 404 www, missing www.
  • Cert invalid www, Regenerate SSL including www.

Frequently Asked Questions

www or without www ?
Indifferent SEO, choose and maintain it.

Cloudflare ?
Full SSL mode + same canonical rule.

Without .htaccess?
Panel alone is often enough on Anthony IT.

Multisite?
Rules per network domain.

Related guides

See also our web hosting offer and all the procedures on wiki web hosting.