Solved

Redirect all .asp / .php to .aspx

Posted on 2006-11-22
7
1,270 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:Psychotext
  • 3
  • 3
7 Comments
 
LVL 10

Expert Comment

by:AndresM
ID: 17999970
0
 
LVL 2

Author Comment

by:Psychotext
ID: 18000430
I read the article, it seems to be an overview but lacking specifics.  (Links at the bottom aren't links yet?)
0
 
LVL 10

Expert Comment

by:AndresM
ID: 18003920
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
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 10

Expert Comment

by:AndresM
ID: 18003928
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.
0
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 500 total points
ID: 18012167
Hi,

look at here...
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/156bc147-2948-44c4-be2d-b911c5813745.mspx?mfr=true
http://www.mcanerin.com/EN/articles/301-redirect-IIS.asp

1.Go to IIS services
2.right click on the site
3.Applications settings >> configurations >> Mappings >>
4.Highlight the asp mapping >> edit >> change executable to the appropriate dll for running aspx

R.K
0
 
LVL 2

Author Comment

by:Psychotext
ID: 18012335
That looks like what I'm after rama_krishna580, will give it a try.
0
 
LVL 2

Author Comment

by:Psychotext
ID: 18032038
Worked fine, thanks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question