grav cms with ganty5 framework gives error "403 Forbidden"

22 October 2017, 14:12

I have Grav CMS with UrlToolkit from topic #2136.

In grav admin i installed the ganty5 framework plugin. This plugin installs the Gantry Administration for configuring your page. In Gantry Administration when i try to save a change of my page settings i get error "403 Forbidden. Oops, Invalid security token; please reload the page and try again."

I found an issue for this in the grav's github page [] where they give configuration for Nginx and Caddy. I think that some modification is needed in the grav UrlToolkit. Can someone help me?

Thanks in advance
Hugo Leisink
22 October 2017, 14:17
If you tell me what the change is they made in the nginx configuration, I'll take a look at it.
22 October 2017, 15:45
location / {
try_files $uri $uri/ /index.php?_url=$uri&$query_string;
23 October 2017, 22:55
I think the issue is that UrlToolkit for grav does not pass query string to PHP.
I just don't understand symbols like /(.*)$ mean to do. Where should I find more info?
Hugo Leisink
24 October 2017, 00:00
Try this:
Match ^([^?]*)(\?(.*))? Rewrite /index.php?_url=$1&$3
24 October 2017, 20:56
It works. Thanks for your support.
I really like Hiawatha. Keep up the great work.
Hugo Leisink
25 October 2017, 00:45
Thanks! Will do.
This topic has been closed.