2

When I set the Default Document in IIS to display my Default page (default.aspx), and access it using the host header I implemented; it only shows the host header address and not the full page address in the browser.

For example:

Host header: http://mysite IIS default document: /PageContainer/default.aspx

when I enter http://mysite through the browser; it opens the http://mysite/PageContainer/default.aspx but shows only the http://mysite address in the browser address bar.

How can I change it to show the full url like http://mysite/PageContainer/default.aspx in the browser address bar either.

Beytan Kurt
  • 2,203
  • 4
  • 34
  • 57

2 Answers2

0

You could add a redirect for

http://mysite --> http://mysite/PageContainer/default.aspx
DaveDev
  • 41,155
  • 72
  • 223
  • 385
0

You could add a default.aspx page in the root (i.e. http://mysite/default.aspx) with the following code and make 'default.aspx' the default document:

<html>
<head>
<meta http-equiv="refresh" content="0;URL=/PageContainer/default.aspx" />
</head>
<body></body>
</html>
Anupheaus
  • 3,383
  • 2
  • 24
  • 30