HTML Redirects

Every once and a while I re-arrange websites. Inserting new load balancers, adding a new layer to the inbound traffic stack, different web servers, whatever.

Sometimes I need to do the simple thing and force a client to go to a different web page due to infrastructure changes. This is the easiest way I have found to get that done.

  • Move content to its new location
  • In the now empty directory create a file index.html (or default.htm)
  • Add the following line to that file:
    <meta http-equiv="refresh" content="0; URL=''" />