I am brand new to IIS, so I apologize if this is a simple request.
I have an application set up at http://servername/longlocationhere
. The application unfortunately uses hardcoded links in its code, so I can't change the name of the application or its server location. I would therefore like to simply set up a redirect from http://servername/shorturl
to the actual URL. It doesn't need to mask the URL or anything, I'd just like to have a shorter URL redirect to the longer one. How can I accomplish this? All of my searching hinges on redirecting an entire site, which is not what I'm going for.
Best Answer
Technet has a section of Configuring HTTP Redirection in IIS 7. Including situations like:
Which seems like something exactly like you are looking to do.
Obviously, first create the directory for the
shorturl
and set the redirect properties on theshorturl
folder level. If you are looking redirect to a relative destination:If you are looking to redirect to a exact/full path destination: