Avatar of garyilm
garyilm
 asked on

Web.config whole domain redirect

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.
ASP

Avatar of undefined
Last Comment
Big Monty

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Big Monty

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Shaun Kline

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.
garyilm

ASKER
I've requested that this question be deleted for the following reason:

nobody answred with the details i provided.
Big Monty

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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Big Monty

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.
Big Monty

I recommend accepting my first answer, it covers everything s/he is looking to do