Solved

IIS7 - define URL for an application in IIS

Posted on 2012-04-10
7
306 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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