Solved

IIS Question

Posted on 2016-10-06
8
44 Views
Last Modified: 2016-10-11
Good Morning!

We just purchased a .net domain...we are moving from a .com (which was managed by our parent company) to a .net, which we are managing.  I have a few questions, since we're kind of new to this side of the IIS world.

We have a lot of applications, and each will have their own page (www.domain.net/application).  However, if someone misses the page extension, we'd like www.domain.net to be a landing page that will have a link to each of our different pages for each application.

I've been trying to search for information on the Internet, but I'm having difficulting finding exactly what I need.  Can someone either give me some information or point me to a few good resources, please?

Thanks in advance!
0
Comment
Question by:bucball2007
8 Comments
 
LVL 33

Expert Comment

by:paulmacd
ID: 41831865
The answer depends a little on what you mean by "if someone misses the page extension".

The main site (www.domain.net) should have its own home page, of course.  If a visitor doesn't know the application name, going to the main site should just take them to that home page.  

If a visitor misspells an application name, you could have a custom 404 error page that tries to handle the request gracefully.  I have a page that tries to parse the URL sent by the visitor and looks for key words.  If I find something that is similar to a page I have (/docs instead of /documents), I send the visitor to what I think it is they're looking for.  Otherwise they get the home page.
0
 
LVL 16

Expert Comment

by:Emmanuel Adebayo
ID: 41831902
As Paulmacd suggested, you ca do this by customised error 404 page. For information on how to, pls check the link below

http://www.sherweb.com/blog/how-to-create-custom-error-pages-in-iis-7-5-with-asp-net/
0
 

Author Comment

by:bucball2007
ID: 41831926
Thanks for the info.  What I mean by "if someone misses the page extension"...if they go to www.domain.net instead of www.domain.net/app1, or www.domain.net/app2, can we have www.domain.net be the home page, but with the links to the app1 and app2 pages?  Kind of like a Contents page.
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 41831945
"can we have www.domain.net be the home page, but with the links to the app1 and app2 pages?"
Absolutely!  And it could be exactly as you describe - a page with links to the various applications.
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Author Comment

by:bucball2007
ID: 41832400
Thanks paulmacd...where would I find documentation on that?  That's what I can't find.  :)
0
 
LVL 33

Accepted Solution

by:
paulmacd earned 250 total points
ID: 41832451
Just build any old web page and make sure your web server points to it as the default document.  IIS looks for default.htm, default.asp, index.htm, and index.html when it's first set up, so you could name your page one of those if you like.
0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 41832723
<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Main Page</title>
    </head>
    <body>
        <p><a href=".\app1\default.html">Application 1 </a></p>
        <p><a href=".\app2\default.html">Application 2 </a></p>
        <p><a href=".\app3\default.html">Application 3 </a></p>
    </body>
</html>

Open in new window

0
 

Author Comment

by:bucball2007
ID: 41834090
Thanks paulmacd and David Johnson!  :)
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!

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

12 Experts available now in Live!

Get 1:1 Help Now