301 Redirects from ASPX to PHP files on IIS server
Posted on 2011-03-16
I have been tasked with converting an existing ASP.net (.aspx) site running on IIS to a PHP site running on IIS. I can't use another Web server as there are some back-end items that are still in asp.net.
My question is this: What is the best way to do 301 Permanently Moved redirects? I've read a bunch about using the .htaccess file in Apache, but not sure how to do this in IIS. Also, the names of the pages are not going to be the same, and we have shrunk the site so many of the old aspx pages will go to the same php file.
Is there a way to do this in one file as in using the .htaccess? The only other solution I can think of is to maintain all the aspx pages and do a response.redirect in each. I was hoping to avoid doing that if possible.