How To Redirect Http To Https
This article helps you to find the information on How To Redirect Http To Https.
Redirecting HTTP to HTTPS
1. Divert All Web Traffic
If you have existing code in your .htaccess, add the accompanying:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
2. Divert Only a Specific Domain
For redirecting a particular space to utilize HTTPS, add the accompanying:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
3. Divert Only a Specific Folder
Redirecting to HTTPS on a particular organizer, add the accompanying:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} organizer
RewriteRule ^(.*)$ https://www.yourdomain.com/organizer/$1 [R,L]