Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Admin login page keeps reloading after custom_base_url change

Started by Mark Berthelemy 6 years ago · 0 replies · 672 views
6 years ago

Hi there,

I have grav setup in a sub-folder and it was working fine when used via an IP address.

I have now setup DNS and I can access the front end with no problems, but when I try to login to the admin panel, the login just refreshes with no error message. I've tried with two users. The Forgot Password routine also just goes back to the admin panel with no reset email sent (I'm not sure if that's connected).

I changed custom_base_url via the admin panel (when I could access it) to point to the root of the domain. I've also changed it within config/system.yaml.

I've also changed session path to /

I've added the following to .htaccess at the root of the domain:

TXT
Options -Indexes

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://egliseriverside.fr/$1 [R,L]

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/grav/
RewriteRule ^(.*)$ /grav/$1

I've cleared all the caches.

Thanks for any help!

Mark

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago