How do I make a website HTTPS only using .htaccess
- Open .htaccess for website using ftp
- Insert the following at top of .htaccess file:
- “#BEGIN Forcing https:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
#END Forcing https:” - Save
- Overwrite existing .htaccess file