Hi!
I set up a website a few hours ago (wikilukas.ga) and then installed pmWiki through Softacolous. I also enabled cloudflare. Now, I have 3 issues (and I’m assuming they’re all connected).
- If i access my website through the www subdomain i get an error 520
- If i access my website through https i get this error: ERR_SSL_PROTOCOL_ERROR
- No links or images are working on my website (I think this is because pmWiki is trying to access all links / images through https, but that gives an error and therefore there are no images etc.)
Also, according to cloudflare everything is working fine, and this is what confuses me the most. On the overview page, it says “Great news! Cloudflare is now protecting your site”.
Is there anything wrong here, is there anything that I can do to fix it or do I simply just have to wait a day or two?
Thanks!
Are you using the CloudFlare cPanel intergration
I’m accessing through non www. and it is returning error 520
Hello can you please try change your SSL to Flexible
@Deveroonie
That’s weird, for me it goes like this:
- HTPP: Can access website, but there are problems (described in initial post)
- HTTPS: ERR_SSL_PROTOCOL_ERROR
- WWW: Error 520
@anon12237952
Sure, I’m changing it now
Http redirects me to https. Any visit gives me 520
Yes it seems to be working, but I still have the issue with images and links not working…
Can i know how it actually wants to look
Something like this: https://www.pmwiki.org/
When I click any link, it seems like they are not secure - only the default page is secure for some reason…
Yes.
I also did some debugging, and it seems like the css file isn’t loading because it’s expecting it to be in a https link and not an http, therefore everything looks weird. Same goes with the sublinks and the images.
Also, every link seems to get encrypted if i add www to it. Don’t know if this is relevant though 
Can you please try adding this .htaccess code
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Now I’m getting other errors 
When i just visit wikilukas.ga I get ERR_SSL_PROTOCOL_ERROR and when visiting through the www subdomain I get ERR_TOO_MANY_REDIRECTS
One min i will try with my site for you
Do you have force https enabled in Cloudflare?
If yes can you please Disable it and try again
I disabled something called always use HTTPS if that’s what you mean, doesn’t seem to make any difference sadly
Have you setup use strict ssl in cloudflare? because this would cause these errors