nedjelja, 9. prosinca 2007.

redirect a visitor to

Here's an example on how to redirect a visitor to


The above example shows how to redirect the visitor to a static address. You can also dynamically create the location to which the visitor is to be redirected.

$redirectstr= $domain.$querystring;
header('Location:'. $redirectstr);

The above code will create the URL for redirection as and then redirect them to the URL. You can also build php code which can conditionally redirect a page. See how this is done in the following example.


1 komentar:

anusuyaw3solutions kaže...

I have read this post. collection of post is a nice one ..that am doing website designing company chennai india and website development company chennai india. That I will inform about your post to my friends and all the best for your future posts..


Sopranos Ruby Css Xhtml Cgi Calabria Rocky Oktoberfest Fencing