Solved

IIS7 - define URL for an application in IIS

Posted on 2012-04-10
7
302 Views
Last Modified: 2012-04-15
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?
0
Comment
Question by:CipherIS
  • 5
  • 2
7 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
Comment Utility
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
 
LVL 1

Author Comment

by:CipherIS
Comment Utility
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
 
LVL 20

Expert Comment

by:BuggyCoder
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:CipherIS
Comment Utility
that won't work.  the site is pointing to a WCF Service.
0
 
LVL 1

Author Comment

by:CipherIS
Comment Utility
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
 
LVL 1

Accepted Solution

by:
CipherIS earned 0 total points
Comment Utility
I figured it out.  Right click on sites.  Add new site.  and put www.mysite.com and point to that dir.
0
 
LVL 1

Author Closing Comment

by:CipherIS
Comment Utility
figured it out
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

10 Experts available now in Live!

Get 1:1 Help Now