Avatar of bamapie
 asked on

redirect to specific page

Windows Server 2003

I have an internal website with a couple of pages in it that I want to point specific DSN names at.  

What I mean is, I already have designer.mycompany.com pointed at my website.  Which means that basically, by default, designer.mycompany.com is pointed at Default.aspx.

But I'd also like to point editor.mycompany.com at another page, same web application: like, at Editor.aspx.

Can I do this within IIS somewhere?  I really would like to find a way to do this without something really cludgy.


ASP.NETC#Microsoft IIS Web Server

Avatar of undefined
Last Comment

8/22/2022 - Mon

in IIS set the default document to the page that you want to come up by default and move it to the top of the list

That would break how the other one is working (Default.aspx).  I need both to work.

yeah i just saw the same application part.  The only way i know would be having a page as the default with some javascript to redirect based on the location coming in, but that wouldnt be that clean
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

Put this in your load codebehind



disrupt:  Your website says this solution is for IIS 7.0.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.


i think that redirect only works for a single page per app

I don't see a solution here that fits the question.  Remember, I'm *not* looking to redirect based upon a certain page request.  I want to redirect based on 2 different domains that point to the same app.  I want one domain to point at Page1.aspx, and the other to point at Page2.aspx.

These examples from disrupt seem to redirect if the user has requested Page2.aspx.  Not quite the same thing as where I'm at.  I have a user who has requested app2.mycompany.com, not Page2.aspx.  I would like to take all requests for app2.mycompany.com, and point them all to Page2.aspx.

My original question says Win Server 2003, I believe that is II6 6.0.
Your help has saved me hundreds of hours of internet surfing.

Create a IIS website and set the bindings of the two domains you want to point them to and point the website to a empty folder with a web.config like so: (replace http://websitehere.com)
<?xml version="1.0" encoding="UTF-8"?>
        <httpRedirect enabled="true" destination="http://www.websitehere.com" httpResponseStatus="Permanent" />

Open in new window



Don't want to redirect to website.  Want to redirect to specific page within existing website.


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question