Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

301 redirect http to https

#For apache .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Source by moz.com #
 
PREVIOUS NEXT
Tagged: #redirect #http #https
ADD COMMENT
Topic
Name
1+9 =