admin管理员组

文章数量:1405392

I've created a page that shows content from a specific year. The year will be defined in the url. Example url: /stats/tour/?year=2019

It works perfectly when I type year=2019 but other on other year I get a 404 page. Don't know why because the other years definitely exist. And why does it gives an error, because it's just a simple parameter in the url?

I've created a page that shows content from a specific year. The year will be defined in the url. Example url: https://mpdb.space/stats/tour/?year=2019

It works perfectly when I type year=2019 but other on other year I get a 404 page. Don't know why because the other years definitely exist. And why does it gives an error, because it's just a simple parameter in the url?

Share Improve this question asked Dec 22, 2019 at 16:21 DennisDennis 1358 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It seems that "year" is a reserved word. I've changed it to "tour" and it works perfectly.

本文标签: phpGet posts from year from URL