Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

redirect to http to https .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redirect #http #https
ADD COMMENT
Topic
Name
1+3 =