Username kinantassapehji, Website ramihjej.com
Error Message
However I have added in.htaccess.txt this:
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}
redirect is still doesn’t work
Other Information
I don’t find (Force use Https in my Cpanel)
Make sure the file name is .htaccess
and not .htaccess.txt
. There shouldn’t be any file extensions.
Secondly, I haven’t tried your code but this is the recommended code for forcing https
5 Likes
Yesss. Thank you very much for your advice. The problem was the extension as you’ve mentioned.
This solves the problem immediately.
Thanks a lot…
2 Likes
system
Closed
#4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.