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

Thread Tools
 
Search this Thread
 
Old 02 September 2004, 07:20 PM
  #1  
*Sonic*
Scooby Regular
Thread Starter
 
*Sonic*'s Avatar
 
Join Date: May 2004
Location: R.I.P Piphead, at least you are home now :(
Posts: 10,026
Received 15 Likes on 10 Posts
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
Old 02 September 2004, 10:01 PM
  #2  
HankScorpio
Scooby Regular
 
HankScorpio's Avatar
 
Join Date: Feb 2004
Posts: 5,848
Likes: 0
Received 0 Likes on 0 Posts
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..?
Old 02 September 2004, 10:19 PM
  #3  
JasonHook
Scooby Regular
 
JasonHook's Avatar
 
Join Date: Oct 1999
Posts: 470
Likes: 0
Received 0 Likes on 0 Posts
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?
Old 03 September 2004, 12:05 AM
  #4  
sti555
Scooby Regular
 
sti555's Avatar
 
Join Date: Dec 2003
Location: cheshire
Posts: 1,180
Likes: 0
Received 0 Likes on 0 Posts
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>
Old 03 September 2004, 12:49 AM
  #5  
*Sonic*
Scooby Regular
Thread Starter
 
*Sonic*'s Avatar
 
Join Date: May 2004
Location: R.I.P Piphead, at least you are home now :(
Posts: 10,026
Received 15 Likes on 10 Posts
Default

cheers for that

will give it a go tomorrow

Steve
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
33
29 August 2017 07:18 PM
JonMc
Subaru Parts
22
06 February 2016 09:50 PM
Justme103
Other Marques
31
28 November 2015 10:35 PM
blockhead
Subaru Parts
19
07 November 2015 11:50 PM
JonMc
Wheels And Tyres For Sale
2
16 September 2015 02:57 PM



Quick Reply: https redirect



All times are GMT +1. The time now is 05:15 AM.