View Full Version : Site redirect script?
satishtalim
Jun 8th 2007, 12:14 am
Whenever anyone types http://rubystudynotes.com/ I would like them to be redirected automatically to http://rubylearning.com/ I own both the domains.
How do I do this? I do not know PHP!! Thanks.
ashish1987
Jun 8th 2007, 12:55 am
You can use your control panel in rubystudynotes.com to redirect or else add a page there which would redirect you to the other domain.I can do it for you. PM me if you wish.
BLaZeR
Jun 8th 2007, 12:58 am
Put this in the index php file. Rename the site.com of course.
<?
header("Location: http://www.site.com");
?>
satishtalim
Jun 8th 2007, 12:59 am
You can use your control panel in rubystudynotes.com to redirect or else add a page there which would redirect you to the other domain.I can do it for you. PM me if you wish.
Thanks. I used the control panel to do it.
donteatchicken
Jun 8th 2007, 10:39 am
Using control panel may not be a good idea, now you have 2 domains with duplicate content.. google will penalize you for that in about 6 months..
i'd use a meta refresh
<meta http-equiv="refresh" content="2;url=http://destinationurl.com">
See the "2"? Thats how many seconds it will will wait before redirecting the end user.. enough time for them to read "Loading....." or "Redirecting to our new site, please wait" text.. you can alter the seconds as well..
Put the code anywhere in the page (html)
If it's php use:
echo "<meta http-equiv='refresh' content='2;url=http://destinationurl.com'>";
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.