Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

https redirect

Old Sep 2, 2004 | 07:20 PM
  #1  
*Sonic*'s Avatar
*Sonic*
Thread Starter
Scooby Regular
 
Joined: May 2004
Posts: 10,026
Likes: 15
From: R.I.P Piphead, at least you are home now :(
Default https redirect

Anyone know how to redirect a https page

Ive tried the standard http to https redirect which doesnt work when the site starts with https

http-equiv is the start of the code, and ive tried https-equiv but that doesnt work

what I want is something like this https://server redirecting to https://server/website

Steve
Reply
Old Sep 2, 2004 | 10:01 PM
  #2  
HankScorpio's Avatar
HankScorpio
Scooby Regular
 
Joined: Feb 2004
Posts: 5,848
Likes: 0
Default

Just thinking out loud...
can you do a redirect to a relative path rather than an absolute on if you're on the same top level and the client is on secure anyway..?
Reply
Old Sep 2, 2004 | 10:19 PM
  #3  
JasonHook's Avatar
JasonHook
Scooby Regular
 
Joined: Oct 1999
Posts: 470
Likes: 0
Default

Have you tried a Javascript solution with document.location? I wrote a routine to take apart a uri and redirect but I can't find it just now.

Or you might try mod_rewrite if you're using Apache as your web server?
Reply
Old Sep 3, 2004 | 12:05 AM
  #4  
sti555's Avatar
sti555
Scooby Regular
 
Joined: Dec 2003
Posts: 1,180
Likes: 0
From: cheshire
Default

<html>

<head>
<title></title>
<noscript>
<meta http-equiv="refresh" content="2; URL=redirectiontarget.htm">
</noscript>
<script language="JavaScript">
<!--
var sTargetURL = "https://YOURURLHERE.com";

function doRedirect()
{
setTimeout( "window.location.href = sTargetURL", 2*1000 );
}

//-->
</script>

<script language="JavaScript1.1">
<!--
function doRedirect()
{
window.location.replace( sTargetURL );
}

doRedirect();

//-->
</script>

</head>

<body onload="doRedirect()">

<p>Loading <a href="redirectiontarget.htm">www.YOURURLHERE.com</a></p>
<p>In approx. 2 seconds the redirection target page should load.<br>
If it doesn't please select the link above.</p>

</body>
Reply
Old Sep 3, 2004 | 12:49 AM
  #5  
*Sonic*'s Avatar
*Sonic*
Thread Starter
Scooby Regular
 
Joined: May 2004
Posts: 10,026
Likes: 15
From: R.I.P Piphead, at least you are home now :(
Default

cheers for that

will give it a go tomorrow

Steve
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
34
Nov 7, 2024 04:10 PM
JonMc
Subaru Parts
22
Feb 6, 2016 09:50 PM
Justme103
Other Marques
31
Nov 28, 2015 10:35 PM
blockhead
Subaru Parts
19
Nov 7, 2015 11:50 PM
JonMc
Wheels And Tyres For Sale
2
Sep 16, 2015 02:57 PM


Thread Tools
Search this Thread

All times are GMT +1. The time now is 12:03 PM.