Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6860811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:27:19+00:00 2026-05-27T02:27:19+00:00

I have one server, server.domain.local that hosts 3+ web applications. I have aliases for

  • 0

I have one server, server.domain.local that hosts 3+ web applications. I have aliases for all of these apps so I can browse to:

http://alias1/alias1website.htm
http://alias2:alias2port/alias2website.htm
http://alias3:alias3port/alias3website.htm

I need to be able to modify the iisstart.htm with javascript so that depending on the alias a user puts in the browser, it redirects to a site and port w/ address.

Ex: http://alias3 should redirect to http://alias3:alias3port/alias3website.htm.

I know this is possible, I have done it before, I just cannot for the life of me remeber the code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:27:19+00:00Added an answer on May 27, 2026 at 2:27 am

    You could do it with an if statement.

    if(window.location.hostname == 'alias3'){
        window.location = 'ht55tp://alias3:alias3port/alias3website.htm';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web-server, that serves different domain-names, but has only one IP-address assigned.
I have a few SQL Server databases (all in one server), containing their own
Normally I would have one junit test that shows up in my integration server
I have an ASP.NET 3.0 application that works fine on one server. It uses
I currently use my local web server to allow costumers to preview some applications
I have a C# ASPX website stored on one server that calls numerous results
I have two Windows Server 2008 machines on the same domain. Server one is
I have two virtual directories, one hosts an application the other hosts a web
I'd like to have one server make an http post request to another server.
I have one website on my server, and my IIS Worker Process is using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.