Solved

Redirect all .asp / .php to .aspx

Posted on 2006-11-22
7
1,271 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Allow X-Forwarded-For Headers to Site or No? 3 91
IIS 7.5 to 8.0 6 122
Link SQL table to Webpage 9 71
Finding Events logs for IIS website that restarts 2 21
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
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…

726 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