Solved

Redirect all .asp / .php to .aspx

Posted on 2006-11-22
7
1,260 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
Comment Utility
0
 
LVL 2

Author Comment

by:Psychotext
Comment Utility
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
Comment Utility
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 10

Expert Comment

by:AndresM
Comment Utility
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
Comment Utility
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
Comment Utility
That looks like what I'm after rama_krishna580, will give it a try.
0
 
LVL 2

Author Comment

by:Psychotext
Comment Utility
Worked fine, thanks.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now