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?
1 Answer
Reset to default 0It seems that "year" is a reserved word. I've changed it to "tour" and it works perfectly.
本文标签: phpGet posts from year from URL
版权声明:本文标题:php - Get posts from year from URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744883807a2630364.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论