Ensure all HTTP requests are redirected to HTTPS

Hi guys, I’ve been asked to ensure that all HTTP requests are redirected to HTTPS.

Can you pinpoint the right direction and how can I either check or fix that?

Thank you so much for your help

I tried to place this code under REWRITE rules for my website but still http urls are not redirected to HTTPS

rewriteCond %{HTTPS} !on
rewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ˆ(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

Hello @ilpaulm21

Use the presets already available. Click the select to see the HTTP → HTTPS rule option

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.