Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Admin login page keeps reloading after custom_base_url change

Started by Mark Berthelemy 6 years ago · 0 replies · 385 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 Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago