?
Solved

IIS7 - define URL for an application in IIS

Posted on 2012-04-10
7
Medium Priority
?
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37829274
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
ID: 37829942
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
ID: 37830056
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

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

Author Comment

by:CipherIS
ID: 37830362
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
ID: 37831056
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
ID: 37848057
figured it out
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 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