Redirect HTTP to HTTPS and manage www
Redirects 301 SEO: force HTTPS, choose www or without www and avoid duplicate content.
Ready to start your service? Check offers and order online.
View offers and orderHTTP, 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.
What you need
Order of redirections
Apply in the order: HTTP→HTTPS, then www-apex without loop.
-
Curl test
curl -I http://domaine.fr, must end in 301 HTTPS. -
Chain
Max 2-3 jumps redirect.
-
Search Console
Declare your favorite property.
-
CMS URL
WordPress Site URL = Home URL.
Force HTTPS via panel
-
SSL section
HTTPS Force / Redirect option.
-
Let's Encrypt
Valid certificate required.
-
STS
Advanced option after testing.
- Sub-domains
Rules .htaccess www
-
RewriteEngine On
At the top of the file.
-
To www
RewriteCond %{HTTP_HOST} !^www. [NC] + RewriteRule https://www.%{HTTP_HOST}%{REQUEST_URI}
-
To apex
Inverse: redirect www to non-www.
-
Backup
Backup before edit.
WordPress and CMS
-
General settings
WordPress URL and Website identical https.
-
Really Simple SSL
Plugin if mixed content.
-
PrestaShop
Shop Settings → SEO URLs https.
-
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.