Forum Moderators: phranque

Message Too Old, No Replies

ModRewrite redirect and force close for IE bug

         

broniusm

6:53 pm on Sep 28, 2005 (gmt 0)

10+ Year Member



I found a WebmasterWorld post on redirect and force connection close for IE bug [webmasterworld.com] useful, but got to wondering: is there a ModRewrite equiv to force a header Connection: close without any server scripting?

<?php
if($HTTP_SERVER_VARS["HTTPS"]!= "on")
{
$newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("Location: $newurl");
header("Connection: close");
exit();
}
?>

If so, I couldn't find one.. If not, can someone post a PERL equiv?

thanks
-bronius