How can I redirect such link (below) to 404 error page?
I generate a SEO friendly links, normally products has url like blabla.com/category/sub/product.html
the page doesnt give any error. it just display blank content. I mean i can see static texts like CATEGORY NAME header and but there is no dynamic categoryname next to that, because of url is wrong and cant get record from db. page doesnt display dynamic contents, but display static contents
Appreciate helps!! thanks
if the query don’t result any row, you can set the header for 404 – not found and redirect to a 404 page
for example: