Locked out of panel after SSL addition

Hi all -

Not sure if it’s coincidence, but I added an SSL to my site and now I can’t log in (just does it’s little shake with red error labels on the fields). I’m using the following in my htaccess:

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]

I’ve read in some old docs for v2 to add ‘c::set(‘ssl’, true);’ to the config file, which i’ve tried, but no luck, and not sure if it’s relevant for v3.

Failing that, if I remove the user folder as suggested elsewhere then I’m told it needs to be done locally. Is there a way of creating a new user account on a public server with access to the panel?

Thanks!

Try these rules, i know they work for K3 (will strip WWW and force SSL)…

RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTP_HOST} ^www\. [NC,OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE]

c::set(‘ssl’, true) wont work on Kirby 3, the way the config works has completly changed.

This is the setting to allow installing the Panel on a remote server after you have removed your accounts: https://getkirby.com/docs/reference/system/options/panel#allow-the-panel-to-be-installed-on-a-remote-server.

Make sure to remove this setting again afterwards.

Thanks, had a 404 for the link you provided but realised it’s got ‘.test.’ in the url, so all sorted now!

Oh, sorry, happened to me twice yesterday because I had my local copy open :see_no_evil:

No problems, you’ve been a huge help as always :slight_smile: