Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

https redirect htaccess

RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$ 
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$ 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Source by www.inmotionhosting.com #
 
PREVIOUS NEXT
Tagged: #https #redirect #htaccess
ADD COMMENT
Topic
Name
6+6 =