Keywords: General - AWS - How to - Secure Connections (SSL/HTTPS)
Description:
Dearv team,
I have applied your code for re-direction but many problem is not resolved.
# Redirect non-www to (ssl) www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^nexahair\.com [NC]
RewriteRule ^(.*)$ https://www.nexahair.com/$1 [L,R=301]
# Redirect non-SSL to SSL
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Ideally the redirect should have been 301 - https://developers.google.com/search/docs/advanced/crawling/301-redirects
https://snipboard.io/kX2tHb.jpg
pls see the above screenshot and help me on this