• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

php header redirecting

  • Thread starter Thread starter nick
  • Start date Start date
Status
Not open for further replies.
N

nick

Guest
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:
<?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:
<?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.
 
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?
 
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.
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
19,801
Messages
69,798
Members
44,585
Latest member
tsscgroup
Active members today
0
New members today
0
New threads today
2
New posts today
2

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top