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.

Installation & Hosting

New install having problems with taxonomy pages

first-time

Started by Mark Hanford 8 years ago · 1 replies · 581 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 antoinep, 13 hours ago
5 60 8 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 62 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 62 8 months ago
Installation & Hosting · by N, 12 months ago
3 72 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 61 1 year ago