https redirect
Thread Starter
Scooby Regular
Joined: May 2004
Posts: 10,026
Likes: 15
From: R.I.P Piphead, at least you are home now :(
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
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?
<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
34
Nov 7, 2024 04:10 PM
Justme103
Other Marques
31
Nov 28, 2015 10:35 PM
blockhead
Subaru Parts
19
Nov 7, 2015 11:50 PM




