Solved

IIS redirection

Posted on 2014-01-31
11
190 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 19

Expert Comment

by:Patricksr1972
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 19

Expert Comment

by:Patricksr1972
ID: 39825080
Cool. In that case. Can you (in bindings) add url.domain.com on port 80?
0
 
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 19

Expert Comment

by:Patricksr1972
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 7

Author Comment

by:tolinrome
ID: 39825241
web

bind
0
 
LVL 19

Expert Comment

by:Patricksr1972
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 19

Expert Comment

by:Patricksr1972
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now