Pages

11/09/2009

Website Redirection

I seem to be looking this up every time. Say I have a website with an app in a subfolder. I want to redirect to website/appfolder/default.htm so I don't make the user type https://website/appfolder.
Take this and save it to default.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TITLE</title>
<meta http-equiv="REFRESH" content="0;url=https://info.domain.com/reaction"></HEAD>
<BODY>
Please wait while you are being redirected.
Click<a href="https://website/appfolder">here</a> to go there immediately.
</BODY>
</HTML>

If you want to redirect from unsecure (http) url to a secure (https) url then it is necessary to customize the 403.4 error message text to be the HTML code above.
Do this for IIS by replacing C:\WINDOWS\help\iisHelp\common\401-4.htm with above.
You can revert to the default anytime:
  • right-click the website and choose properties
  • Click Custom Errors tab
  • Click on the 401;4 entry and hit "Set to Default"

  • 11/06/2009

    NewSID retired

    I have always religiously run SysInternals' NEWSID when I cloned or imaged machines. I recently learned that doesn't work on well on Vista/Windows 2008 and doesn't work at all for Windows 2008 R2 or Windows 7.

    I am shocked now to learn that this has not been necessary all along. I'm still digesting it all, but Mr. SysInternals himself says this isn't even necessary and NEWSID is being retired.

    In this eye-opening article he walks through every use of the machine SID and proves that a duplicate machine SID in a workgroup or domain will not cause any problems.

    Mark's Blog