IIS7 - define URL for an application in IIS

I developed an ASP.NET web application.  I right clicked -> add applications and entered appropriate info.  When I browse it shows as http:\\www.myserver.com\myaspapplicaiton.

How do I enter http:\\www.myserver.com  and have it display myaspapplication without showing the applicaiton name in iis?
LVL 1
CipherISAsked:
Who is Participating?
 
CipherISConnect With a Mentor Author Commented:
I figured it out.  Right click on sites.  Add new site.  and put www.mysite.com and point to that dir.
0
 
BuggyCoderCommented:
put an index.htm in your website and have it redirect to your application url(Meta Redirect)

In the head of the document type the folowing:

    <meta http-equiv="refresh" content="0;url=http:\\www.myserver.com\myaspapplicaiton" />

Another option is using 301 redirects.
0
 
CipherISAuthor Commented:
that is not what i want.

url -> http:\\www.myserver.com\myaspapplicatoin needs to display as

http:\\www.myserver.com   or another URL such as http:\\www.myapp.com\
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
BuggyCoderCommented:
Here is your original question:-
When I browse it shows as http:\\www.myserver.com\myaspapplicaiton.

How do I enter http:\\www.myserver.com  and have it display myaspapplication without showing the applicaiton name in iis?

if this is what you want to do, here is another approach:-

make a default.aspx page as your website(http:\\www.myserver.com)'s default page.
In the page load of default.aspx, do a server.transfer to your new url.

this would shift your website to new url without changing the url in browser....
0
 
CipherISAuthor Commented:
that won't work.  the site is pointing to a WCF Service.
0
 
CipherISAuthor Commented:
there has to be a way to do this.  I know if you have a website at godaddy.com it is not set up as www.godaddy.com\mywebiste.  You had a DNS www.mywebsite.com which is www.godaddy.com\mywebsite.
0
 
CipherISAuthor Commented:
figured it out
0
All Courses

From novice to tech pro — start learning today.