Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

New install having problems with taxonomy pages

first-time

Started by Mark Hanford 8 years ago · 1 replies · 767 views
8 years ago

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

TXT
# 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:

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

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

TXT
/index.php?_url=/taxonomy?name=category&val=Tech
8 years ago

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

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

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by jeremycherfas, 23 hours ago
1 46 19 hours ago
Installation & Hosting · by motorambler, 2 weeks ago
8 359 6 days ago
Installation & Hosting · by antoinep, 3 months ago
8 937 3 months ago
Installation & Hosting · by Jürgen Dietrich, 9 months ago
0 601 9 months ago
Installation & Hosting · by rappluk, 11 months ago
0 647 11 months ago