We have a situation where there can be an page sharing the same url of a folder. This is due to a couple of factors including extentionless url that we have implemented. For example: A content creator creates a page with name "Test Page" and a folder called "Test-Page" within the same directory. A request to page "Test Page" is made which gets renamed to "Test-Name" which then collides with the folder "Test-Name" resulting in a 403 error. The folder is "intercepting" the request to the page.
I’ve looked into a couple of solutions. One is preventing the creation of a folder that would collide with an existing page. This solution will not work because the inability to run code when a folder is created.
Now I’m looking into a way to perhaps redirect all 403 errors. The redirection would be to the same url but adding the .aspx extension to the end. After researching this can Not be achieved through a rewrite in IIS. Does Crownpeak have a way to capture and redirect reponses based on the error code?