Redirect HTTP requests to HTTPS #Apache





Redirect the website users from http to secure Protocol if you are using Apache/IHS/OHS ..

  •  Add below lines in httpd.conf and save configuration

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  • Restart your http server
Install SSL / Self Signed certificates in server and configure application accessible via https.

Type your websitre with http protocol, that redirects to https automatically

Comments

Popular posts from this blog

Permissions are too open // #AWS keypair issue - Windows

5 tips for Python Beginners

#Kubernetes Cluster Initialization iptables error #K8s