New install having problems with taxonomy pages

first-time

#1

I have a new Grav install (https://www.cylindric.net) with a couple of extra plugins:

  • taxonomylist
  • simplesearch
  • themer
  • login
  • admin

And I’m using in part the “knowledge-base” theme.

I’ve noticed that the searches for specific tags and categories don’t seem to work, and just give a Grav “404” error.

I’m not using Apache, but CaddyServer, so the .htaccess is kind of different. All other routing seems to be working fine, so I think that is okay, from what I can tell. For example, search URLs such as https://www.cylindric.net/search/query:Home work fine.

Apart from the security protection, the only rule really is

# global rewrite should come last.
rewrite {
    to  {path} {path}/ /index.php?_url={uri}
}

The URL being spat out by the KB lists look like this:

https://www.cylindric.net/taxonomy?name=category&val=Tech

Which from my web logs I can see being re-written as

/index.php?_url=/taxonomy?name=category&val=Tech

#2

Did you try the latest Caddyfile? The rewrite there includes a query-part:

# global rewrite should come last.
rewrite {
    to  {path} {path}/ /index.php?_url={uri}&{query}
}