Solved

IIS redirection

Posted on 2014-01-31
11
193 Views
Last Modified: 2014-03-14
I have created a new website in IIS 7 under the Default Website. Internally, from my desktop, when I go to the url - "http://url.domain.com" I get the Welcome IIS 7 homepage. On the IIS server if I browse website the website comes up fine though.
In my browser if I add to the end of the url as "http://url.domain.com /applicantionname/login" the page appears  correctly.
How can I make that happen automatically?
Thanks.
0
Comment
Question by:tolinrome
  • 5
  • 5
11 Comments
 
LVL 22

Expert Comment

by:Patrick Bogers
ID: 39824712
Create a new website outside the default website called http://application.domain.com and have it look at your website directory.

You COULD copy this code to a index.html under the default website and make it standard page in IIS to open BUT there is a risk you break other websites under the default.
So unless you dont know, continue but document what you have done so you can reverse it if disaster strikes

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0;URL=http://url.domain.com /applicantionname/login" />
<title></title>

</head>
<body>

</body>
</html>

Open in new window

0
 
LVL 7

Author Comment

by:tolinrome
ID: 39824974
Sorry for the confusion but it is a website outside the default website and not under it. When I wrote in the first post that it was under I didn't mean exactly under, but it's a totally separate website. Thanks.
0
 
LVL 22

Expert Comment

by:Patrick Bogers
ID: 39825080
Cool. In that case. Can you (in bindings) add url.domain.com on port 80?
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 7

Author Comment

by:tolinrome
ID: 39825171
I've already done that before but still same results.

When I go to http://app.domainname.com - I see the Welcome IIS page

When I go to http://app.domainname.com/app/apptest - I see the page I want to see

All I did was add on /app/apptest to the end.
Thanks.
0
 
LVL 22

Expert Comment

by:Patrick Bogers
ID: 39825201
Can you printscreen the bindings from your 'separated' website?
Maybe also one showing IIS where websites are separated?

I cannot help help but thinking it is directly under default website.
0
 
LVL 7

Author Comment

by:tolinrome
ID: 39825241
web

bind
0
 
LVL 22

Expert Comment

by:Patrick Bogers
ID: 39825298
OK.. In the root directory of your obvious seperated website, is there website code for IIS to work with?
0
 
LVL 7

Author Comment

by:tolinrome
ID: 39825398
I'm not sure what you mean, please explain? Thanks.
0
 
LVL 22

Expert Comment

by:Patrick Bogers
ID: 39826190
If you click your website in IIS and select basic settings.
In the base URL shown there, is there HTML code? (browse to its location and check) E.g. you could copy my code in a index.html and place it there and see what it does.
0
 
LVL 17

Accepted Solution

by:
Emmanuel Adebayo earned 500 total points
ID: 39826265
The issue here is the way how you set up your content directory structure.

You will need to create your folder structure s such that  it points to the contents of your application. and then you will add whatever extention is loading you login page in the default document if it not default.aspx, index.asp etc.

I hope this helps.

Regards
0
 
LVL 7

Author Comment

by:tolinrome
ID: 39829670
Patrick, if I click on basic settings I don't see where it leads me to a base url. I see I can select site name or the physical path or connect as or test settings...nothing I see where there is html code or a url.

giveandtake, how do I point to the contents of the application login page and default doc?

Thanks.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

730 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