Redirect all http calls to https in apache

<VirtualHost *:80>
 ServerName     www.testname.com
 ServerAlias    testname.com testname1.com
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/ [R,L]
</VirtualHost>
Share on Google Plus

About Admin

Arun is a JAVA/J2EE developer and passionate about coding and managing technical team.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment