[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] How to force httpS for a directory--RaQ4
- Subject: RE: [cobalt-users] How to force httpS for a directory--RaQ4
- From: "E.B. Dreger" <eddy+public+spam@xxxxxxxxxxxxxxxxx>
- Date: Wed Jan 30 17:44:13 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Date: Wed, 30 Jan 2002 13:02:13 -0000
> From: Gavin Nelmes-Crocker <cobalt@xxxxxxxxxxxxxxxx>
> > <script language="Javascript" type="text/javascript">
> > var loc = document.location.toString();
> > var index = loc.indexOf(":");
> > var url = loc.substring(index,loc.length);
> > if (index == "4") {
> > secureUrl = "https" + url;
> > location.replace(secureUrl); // get rid of current page in
> > history
> > location.href = secureUrl;
> > }
> > </script>
> >
> > I haven't tested it.
>
> I have now and it works a treat - Dan you are the man - thanks you've saved
> me a lot of time and found a simple solution that just gets inserted into a
> page - I dropped it at the top made no changes to the file and voila an
> instant redirect to https for any page as needed.
Please keep in mind that not everyone runs JS. Several other
posters have mentioned using meta tags in the document, and how
to configure Ap to send a native 30x code.
If you absolutely must do this in JS... please provide a manual
link for those who turn scripting off. But I'd do it all in
HTTP.
Eddy
Brotsman & Dreger, Inc. - EverQuick Internet Division
Phone: +1 (316) 794-8922 Wichita/(Inter)national
Phone: +1 (785) 865-5885 Lawrence
--
Date: Mon, 21 May 2001 11:23:58 +0000 (GMT)
From: A Trap <blacklist@xxxxxxxxx>
To: blacklist@xxxxxxxxx
Subject: Please ignore this portion of my mail signature.
These last few lines are a trap for address-harvesting spambots. Do NOT
send mail to <blacklist@xxxxxxxxx>, or you are likely to be blocked.