Setting up custom 410 error redirects in IIS
I had picked a task that stated to replace some error 500 status pages and to set them to 410 ‘Gone’ error status.
This was fiddly as the project is server under a proxy and both handle URL Rewrites.
I ended up adding a new rewrite rule:
And created a new rewrite map ‘Static410’ that contained all the links that had to be redirected as 410 error page:
Notes: I had to add the rule at the top of the rule stack.
Resources used: