Hi, There.
I have a free SSL on my page, add a redirect from http to https(working as a charm), but I only get my custom error page when I try a https//: addresses.
E.g.
https://myPage.com/fileDoesNotExist = my custom error page
http://myPage.com/fileDoesNotExist = InfinityFree error page
My .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
ErrorDocument 403 https://myPage.com/indexErr.html
ErrorDocument 404 https://myPage.com/indexErr.html
ErrorDocument 500 https://myPage.com/indexErr.html
Also add my error page on cPanel for all erros. Still not working.
PS: myPage is used as an example
Thank You in Advance