Thread Closed  Post Thread 

php header redirecting
Author Message
nick
SEO Dictator

SEO Team

Posts: 1,181
Group: SEO Team
   
Cash: 432.01 Donate
php header redirecting

Sometimes you want to code such a thing that the user is redirected to particular page rather then linking to that page directly.

Like we see when we download some applications. Where there is small amount of time we have to wait before it automatically redirects to the other place.

The code for it is:

PHP Code:

<?php
$website 
"http://www.nameslot.com";
header("Location: $website");
exit;
?>



The above code is for instant redirect to the given URL in the $website variable.

PHP Code:

<?php
$website 
"http://www.nameslot.com";
header("refresh: 5; $website");
echo 
"Please wait you will be redirected in 5 seconds.";
?>



The above code is for redirecting to the specified URL in 5 seconds. You can also print the waiting message while the user is waiting for the page to redirect.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
01-27-2007 07:04 PM
Send the author a private message Find all posts by this author Quote this message in a reply
This is an ad revenue sharing forum
jignesh
Moderator

Moderators

Posts: 366
Group: Moderators
   
Cash: 307.00 Donate
RE: php header redirecting

as we redirect to any pages,is this SEO friendly? i mean to say is we are showing other things to visiters and we are redirecting to other page.so as far as SEO is concern i think this will hurt the ranking.what other guys says?


Technical Information | Technical World | Seo Services india | BizComSoft
01-30-2007 05:21 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
nick
SEO Dictator

SEO Team

Posts: 1,181
Group: SEO Team
   
Cash: 432.01 Donate
RE: php header redirecting

I have done this thing on one of my sites. http://www.downzine.com where you download the softwares.

The scenario you are mentioning is correct. But I am using rel=NoFolow tag in that links. So no problems for robots as they are not following that links.


DNDaily.com - Your Daily Domain Doze
Twut.com - Free Online Games
Product reviews and ratings
Search Engine Optimization Packages
01-30-2007 06:18 PM
Send the author a private message Find all posts by this author Quote this message in a reply
jignesh
Moderator

Moderators

Posts: 366
Group: Moderators
   
Cash: 307.00 Donate
RE: php header redirecting

ok nick than it will be helpful to use on our site with NoFolow.


Technical Information | Technical World | Seo Services india | BizComSoft
01-30-2007 07:34 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply

Thread Closed  Post Thread 


View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: