Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

.htaccess redirect to https

<IfModule mod_rewrite.c>
....
....
# Redirect To HTTPS
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule ^ https://example.com%{REQUEST_URI} [L,NE,R=301]
...
...
</IfModule>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redirect #https
ADD COMMENT
Topic
Name
5+7 =