We are working on a Magento website and recently we have created a customer 404 page basically a new CMS page and set it as CMS no route page in configuration.
This is working fine on my local system and website replica (Running through a subdomain) but not on main website.
If we type a wrong CMS page url then it redirect to home page. If we type wrong sub category url then it redirect to parent category page e.g. /men/clothing/jeansss.html redirect to /men/clothing.html and /men/clothings.html redirect to /men.html and /mens.html redirect to home page.
Recently we have setup a replica of website on server on a subdomain and 404 page is working there but not with main domain.
Please help me on this. Is there anyone who have faced the same issue?