My Wordpress site goes looking for an archive page if I append a year after the URL.
For example: http:/mysiteurl.com/my-site/2018. If there are posts from this year, it ends up redirecting to index.php for some reason. If there are no posts from that year, it goes to 404 page which is what I want. For example: http:/mysiteurl.com/my-site/2014 goes to a 404 page because there are no posts from that year, which is what I want.
My permalink structure is set to Post name which is like this http:/mysiteurl.com/my-site/sample-post/. So typing a year after the URL should display a 404 page, not show me archives.
Why is this happening?