View Full Version : Redirecting my site.
GeckoNET
May 2nd, 2006, 00:33
I'm in the making of changing my sites name and address to a .com, how can i do this without losing visitors or confusing people on my new domain. i already signed for many things with the old subdomain i use with topsites and such, what's the best option. site is http://openlite.5gigs.com
p.s how do i tell my affiliates and such to change their link address to the new one if they hardly come online anymore?
thanks.
Richard
May 2nd, 2006, 02:29
<script language="javascript">
function checkurl()
{
var local = location.hostname;
if (local == "openlite.5gigs.com")
{
var location1 = "http://yourdomain.com" + location.pathname;
window.location = location1;
}
if (local == "www.openlite.5gigs.com")
{
var location1 = "http://yourdomain.com" + location.pathname;
window.location = location1;
}
}
</script>
Then change: <body> to: <body onload="checkurl();">
~GURU~
May 2nd, 2006, 05:25
<?php
header("Location: http://www.your new domain here.com");
?>
just put that as index.php
on your current subdomain, put in the url there. don't tamper with anything else.
NetCafe
May 2nd, 2006, 05:29
For html page, put the following code in between the "HEAD" tag:
<meta HTTP-EQUIV=refresh Content='0;url=http://www.newdomain.com'>
Richard
May 2nd, 2006, 05:49
The javascript method will work if they are both on the same cPanel account. It also redirects subpages (Eg; got to: http://image.a2host.net/rules.php, you will be redirected to: http://imagetubes.com/rules.php)
NetCafe
May 2nd, 2006, 06:00
The javascript method will work if they are both on the same cPanel account. It also redirects subpages (Eg; got to: http://image.a2host.net/rules.php, you will be redirected to: http://imagetubes.com/rules.php)
But then html version is platform independant, I supposed?
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.