?
Solved

IIS redirection

Posted on 2014-01-31
11
Medium Priority
?
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
11 Comments
 
LVL 23

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 23

Expert Comment

by:Patrick Bogers
ID: 39825080
Cool. In that case. Can you (in bindings) add url.domain.com on port 80?
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
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 23

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 23

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 23

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 18

Accepted Solution

by:
Emmanuel Adebayo earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

801 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