Forward http: to https: for SSL


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. RewriteCond %{SERVER_PORT} !=443
  2. RewriteCond %{REQUEST_URI} ^/register\.php$ [OR]
  3. RewriteCond %{REQUEST_URI} ^/register-success\.php$
  4. RewriteRule ^ https://www.foo.com%{REQUEST_URI} [NS,R,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.