Psychotext
asked on
Redirect all .asp / .php to .aspx
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.
In the past I've done this by manually redirecting each file, but this seems inefficient. Anyone got any ideas? Thanks.
ASKER
I read the article, it seems to be an overview but lacking specifics. (Links at the bottom aren't links yet?)
See if RemapURL helps you. I'd never use it, but may be in you case is a solution. It comes with IIS Resource Kit.
The IIS 6.0 Resource Kit Tools
http://support.microsoft.com/kb/840671
The IIS 6.0 Resource Kit Tools
http://support.microsoft.com/kb/840671
RemapUrl version 1.0 for Internet Information Services (IIS) 6.0 redirects client HTTP requests for Uniform Resource Locators (URLs). RemapUrl consists of two files: RemapUrl.ini and RemapUrl.dll. RemapUrl.ini stores your list of URL mappings. A URL mapping is the assignment of one URL to a different URL or one URL to itself; for example, /Test1.htm=http://www.fabrikam.com or /Test1.htm=/Test1.htm. RemapUrl.dll reads HTTP client requests to see if the requested URL is in the RemapUrl.ini file. If RemapUrl.dll locates a mapped URL in the initialization file, it modifies the request header with the mapped URL and sends the request back to the client. RemapUrl does not remap URLs for host header sites or for sites on ports other than 80.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That looks like what I'm after rama_krishna580, will give it a try.
ASKER
Worked fine, thanks.
http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO_Common_URL_Redirection_Techniques_for_IIS_Summary.aspx