That title sounds confusing, sorry.
But basically I have a category grid page, with pagination.
So I have pages like:
/men/tops/shirts.html /men/tops/shirts.html?p=2 /men/tops/shirts.html?p=3
This is all fine and good, but if I do this:
That URL will load the last available page of products. How do I instead make this return a 404 error?
Basically I need to do this for Infinite Scroll's sake. Otherwise my infinite scroll keeps loading the last page of products and never ends.