Link to home
Start Free TrialLog in
Avatar of bucball2007
bucball2007

asked on

IIS Question

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!
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

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.
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/
Avatar of bucball2007
bucball2007

ASKER

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.
"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.
Thanks paulmacd...where would I find documentation on that?  That's what I can't find.  :)
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks paulmacd and David Johnson!  :)