After I install the SSL certificate to the server. I change the
then I got these error. If you have the same error with your website. then you have 90% chance to fix it by yourself.
error 1: Not Authorized to View This Page [CFN #0004]
error 2: Not found [cfn #0005]
error 3: can not open the page becasue it could not establish a secure connection to the server.
The solution is very sample. you need to add a symlink to your secure server. it all be done within your public folder .htaccess file
the code inside should be something like.
#SSL Redirect
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yoursite.com/$1 [R,L]
You can also ask your hosting company to do that for you. just ask them to put a symlink to your server because you just add an SSL certificate.
remember normally the SSL certificate will cover both domain that without www and with www.
but some SSL issuer does not cover domain with www. if that happens to you, You need to redirect www to non www version of the site. Make sure to use “301 Redirect”. it is using the same code I posted above. in this case you need to make sure that your .htaccess file includes the $1 at the end. ($1 is the number 1, not letter L)