On my website a user can navigate to one of the following URLs:
www.example.com/dir1/ #items list www.example.com/dir1/item1/ #items' content www.example.com/dir1/item2/row3/ #items' row content
whilst each of them is a valid URL, giving different valid results. Now let's say user navigates from another website with bad URL detecting RegEx or he tries to find some exploits or fails with typing valid URL and he gets one of the following link:
 www.example.com/item1/row2/  www.example.com/dir1/row2/  www.example.com/dir1/item2/.SomewordfrombadRegEx  www.example.com/dir1/item2/row3/unsupportedLevel4/
 URL will definitely lead to
404 Not Found page. However, the rest have valid paths' parts in them. What should I do in this cases? Should I throw
404 error for
 URLs or just ignore invalid parts?