Redirect all .asp / .php to .aspx
Posted on 2006-11-22
I'm currently merging a couple of different sites into a newly developed asp.net system. The old sites have .php and .asp files which are well search engine indexed. In most cases each of these .php / .asp files will have a corresponding .aspx file and I'd like to know if it's possible to set IIS to automatically redirect all requests to these pages to the appropriately named .aspx file.
In the past I've done this by manually redirecting each file, but this seems inefficient. Anyone got any ideas? Thanks.