Forum Moderators: coopster

Message Too Old, No Replies

redirect page

         

pklover

8:07 pm on Mar 13, 2010 (gmt 0)

10+ Year Member



can any help me ? i want to use php for page redirection like iframe

<iframe src="www.mydoamin.com/page.php" width="500" height="450">
</iframe>

if this iframe use in my site redirect to www.mydoamin.com/mysitepage.html

if this iframe any other use than redirect to
www.mydoamin.com/sorry.html

Rune

5:50 pm on Mar 14, 2010 (gmt 0)

10+ Year Member



I'm not sure this is what you meant, but it may help?

if($_SERVER['SERVER_NAME']=="mysite.com"){
header("Location: mysitepage.html");
}else{
header("Location: sorry.html");
}

Matthew1980

7:12 pm on Mar 14, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there pklover,

Welcome to the forum ;-p

Could you clarify a little? Don't mean to sound rude or anything, but that's a little vague :) Either that or I have read the post wrong :\

Cheers,
MRb