Solved

Web.config whole domain redirect

Posted on 2012-12-20
8
311 Views
Last Modified: 2013-02-18
I need to change domain names and want to do a whole name redirect with a web.config file. How do I do that.

I need http://www.olddomain.com/products.asp?id=1 to redirect to http://www.newdomain.com/products.asp?id-1

So I need to rewrite the complete url incliding parameters.
0
Comment
Question by:garyilm
  • 4
8 Comments
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
ID: 38713038
in IIS7+, it's better to do it in the rewrite module:

http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module

for iis6 and below, a third party (free) tool will work best:

http://www.isapirewrite.com
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 38713779
Web.config files do not exist in the classic ASP language. They are part of ASP.net. As Big Daddy stated above, this is better done from the server side. If your site is on IIS 6 or less, you can do it from the site properties.
0
 

Author Comment

by:garyilm
ID: 38889693
I've requested that this question be deleted for the following reason:

nobody answred with the details i provided.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 32

Expert Comment

by:Big Monty
ID: 38889692
I offered viable solutions to your question, not sure what else you're looking for, but since there was no feedback, I assumed it had answered your question.
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 38889694
I offered viable solutions to your question, not sure what else you're looking for, but since there was no feedback, I assumed it had answered your question.
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 38894850
I recommend accepting my first answer, it covers everything s/he is looking to do
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

19 Experts available now in Live!

Get 1:1 Help Now