Solved

IIS7 - define URL for an application in IIS

Posted on 2012-04-10
7
304 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
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# GridRow get Old/New Value 1 55
ASP.NET Web API or ASP.NET Core MVC? 3 51
Syntax Error 2 41
Error in JQuery 5 34
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

943 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

7 Experts available now in Live!

Get 1:1 Help Now