Link to home
Start Free TrialLog in
Avatar of Psychotext
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.
Avatar of AndresM
AndresM

Avatar of Psychotext

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
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
Avatar of rama_krishna580
rama_krishna580
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That looks like what I'm after rama_krishna580, will give it a try.
Worked fine, thanks.