Okay i think i got it, change the site url to https and kept the wordpress one http, i think this works because the ssl is through cloudflare
Now how do i get it so when you type in “pavelow.net” it redirects it to “https://www.pavelow.net”
Do you want everyone to be forced to HTTPS? And you want to force the www?
Since most browser support HTTPS, yes and i care about the www.
Actually i would like to require the www, tried to use https://pavelow.net and a lot of stuff didn’t work.
www is an old protocol from back when everything was under separate server hardware. www (www.example.com) was the web server, mail (mail.example.com) was the mail server, ftp (ftp.example.com) was the FTP server, print (print.example.com) was the print server, etc.
These days, everything is run under the web server, making www. redundant and a waste of four characters.
Anyway, if you do want to force www and https, you’ll need to do as follows.
1. Change both settings URLs to https://www.pavelow.net
2. Check both your .htaccess file, hosting panel, and domain registrar for any forced redirects that may conflict with that.
If your site breaks after step 1, that means there is most definitely some forced redirect in step 2.
How do i check for the forced redirects?
Okay i add
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
to the .htaccess. This works for me, can you also try it.
Why did you add that? If you set the URLs in settings, WordPress takes care of the redirect for you.
I have already added the https to the site url but since the ssl is not on my web server change the wordpress url to https will lock me out.
Ok, two things then:
1. Your redirect works as desired.
2. You want to protect the admin via SSL, more than the front end. There’s no reason to encrypt the front end if someone can just sniff your unencrypted password or hijack your unencrypted session when you’re over public wifi and you aren’t logging in via HTTPS. It sounds like your current situation makes that impossible.