Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- RewriteEngine On
- RewriteCond %{SERVER_PORT} 80
- RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
- ---
- Replace example.com with your domain name and place it in a .htaccess file in your public_html folder, this will push users to your SSL based site. Please ensure you've enabled Let's Encrypt First.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement