How To Redirect Users Visitors Different Page Transfer Refer Header("Location:")

Mobile
feeds
Welcome Login | Register

How To Redirect Users Visitors Different Page Transfer Refer Header("Location:")
  Forums Index
      » PHP Forums
        » » how to redirect users visitors different page transfer refer header("Location:")



How To Redirect Users Visitors Different Page Transfer Refer Header("Location:")
Post Description:
Post Tags: how, to, redirect, users, visitors, different, page, transfer, refer, headerlocation, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 307 Times Since Mon May 28, 2007 7:40 am Posted By hostman with 0 replies
How To Redirect Users Visitors Different Page Transfer Refer Header("Location:")
ok, today i wanted to redirect my users from one page to another without them having to click on a link or something. i found out that the best way to redirect people from one page to another webpage is by using php's hearder() function. with this function, you can transfer or redirect your visitors from one page to another automatically.

so for example, lets say i want all my visitors that go to example1.php to go to example2.php automatically, this is how my example1.php file would like:

<?php
header("Location: http://www.wallpaperama.com/example2.php");
exit;
?>


so when anyone goes to http://www.wallpaperama.com/example1.php it will automatically relocate them to http://www.wallpaperama.com/example2.php



Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About How To Redirect Users Visitors Different Page Transfer Refer Header("Location:")




(0) Comments