Hello. I tried to search exactly the same problem, but it didn’t go well
I using VPS where I installed web-server and then I tried to point freenom domain name to server IP-adress using cloudflare as DNS host. I changed nameservers and cloudflare created A-record and CNAME-record. Now index page working fine with domain, but any different adress shows as IP-adress. I mean index as: sitename.com but ip-adress/p=1 anything else.
and after SSL applying to site looks like it can’t to load something and desing is messed up.