· Web Code

Redirecting a webpage using html

The redirect function in IIS 7 and 7.5 is in my experience pretty buggy. More often than not it will send the visitor into an eternal redirect loop.

Because of that I have used this simple html code for redirecting, instead of using the built in function in IIS.

Use it at your own will, I’m just posting it so I know where to find it the next time I need it 🙂



<head>
  <title>
    Some title
  </title>
   
  
  <meta HTTP-EQUIV="Refresh"
 CONTENT="1; URL=https://some.domain.com/" />
  
  <head>
    
     You are now beeing forwarded to <a href="https://some.domain">https://some.domain></a><br />
     If you are not forwarded automatically, click the above link.
    </html>