Jump to content

Archived

This topic is now archived and is closed to further replies.

techker

forwarding

Recommended Posts

hey guys is there a way to forward a page to another automaticly?

cause the domain name that i got goes to the wrong site(i have 2 )i need to so when it goes to the wrong site it is sent to the good one?

Share this post


Link to post
Share on other sites
You can use either a meta refresh.  Forget the exact HTML for it.

Or you can use PHP's header function to move them

[code]
<?php
// You can not have any text sent to the screen prior to using header();
header("Location: http://mynewsite.com");
exit();
?>
[/code]

Share this post


Link to post
Share on other sites
[quote author=pedrobcabral link=topic=102470.msg406664#msg406664 date=1154372617]
<?php echo "<script>window.location='http://goodsite.com';</script>"; ?>
[/quote]

thx bro works great.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.