https redirect
#1
Scooby Regular
Thread Starter
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
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
#3
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?
Or you might try mod_rewrite if you're using Apache as your web server?
#4
Scooby Regular
Join Date: Dec 2003
Location: cheshire
Posts: 1,180
Likes: 0
Received 0 Likes
on
0 Posts
<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>
<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>
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