9

Unfortunately searching the web didn't make me any smarter. I have a web application running under my local IIS 7.5: http://localhost/myWebpage/ Now I'd like to create an alias path pointing to the same application, something like http://localhost/myWebpageAlias/ (the application will change it's layout according to the different address).

How can I achieve this?

Thx for any tipps sl3dg3

sl3dg3
  • 5,026
  • 12
  • 50
  • 74

2 Answers2

4

Try creating a new virtual directory under "Default Web Site" (or whatever site is serving 'localhost'), then point it to the same directory:

enter image description here

Kevin P. Rice
  • 5,550
  • 4
  • 33
  • 39
  • As a second step, you would need to `Convert to Application`... That's what I basically did as a workaround, I simply added a second Application, which is at the end not really an alias, since each url starts a different application. – sl3dg3 Sep 25 '12 at 07:33
  • 1
    So you want the equivalent of multiple domain bindings, but for URL paths, right? Well, if you ran the application in the root of "Default Web Site", then you could use ASP.NET MVC style routing to capture the first path segment of the URL. If you have other apps running under the root, then I think you have the best workaround. Just specify the same app pool and base directory. – Kevin P. Rice Sep 28 '12 at 05:12
  • Yeah, there are many apps running in the root, so I reckon I will stick to my workaround. – sl3dg3 Oct 02 '12 at 10:21
1

Though it is the too late answer. But to alias path, you can use the IIS URL Rewrite module to create a rule which maps one URL to another. Visit here for details description.

Arif
  • 6,094
  • 4
  • 49
  • 81