16
Views
2
Comments
An easy way to configure IIS home directory to redirect to a specific eSpace
Question
Sometimes you want people that go to https://yourserver/ to be redirected to https://yourserver/CustomEspace. There are several ways to achieve this, here's a simple one:
  1. On the server go to Control Panel>Administrative Tools>Internet Information Services
  2. Right-click Web Sites>Default Web Site and choose Properties
  3. On the Home Directory tab choose "A redirection to a URL"
  4. Redirect to "/YourEspaceName"
  5. Check "A directory bellow this one"
  6. Check "A permanent redirection for this resource"

See the attached screenshot for an example.
iisHome.PNG
UserImage.jpg
boudewijn lutgerink
Another way to achieve the same without having to set the IIS configuration can be done directly in a html page.
In the header put this code:
<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=www.Yourserver.com/yoursubfolder>
So assuming you have an index.htm on the landing page of your site and you have a subfolder MyApp with there a page default.aspx you then set in the header

<META HTTP-EQUIV="REFRESH" CONTENT="1; URL=www.YourServer.com/MyApp/Default.aspx>
The setting after the CONTENT is the number of seconds it will take to get redirected.
2020-03-19 14-14-27
Pedro Gonçalves
Staff
Hi guys,

The suggestion of the first post is for IIS6. Any idea how the configuration above can be done on IIS7? I tried to follow Microsoft's HTTP Redirection in IIS7 instructions but it seems its use cases are not the same as this post's.

boudewijn, thank you for your suggestion. It did the trick, although I'd prefer doing it in IIS fashion. Any idea how?

Regards,
Pedro
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.