P
P
pibiv2015-03-13 13:02:54
Search Engine Optimization
pibiv, 2015-03-13 13:02:54

How not to pass link weight?

The next question is there is a website and the client wants that the weight of the links that lead to the attachment of resources is not transferred.
Googled two solutions
1) Automatically add noindex and nofallow tags to external links
2) Make a file like go.php with something like this

<?php
$URL="http://google.com";
header("Location:$URL");
exit();
?>

The question is which variant is more practical and are there any advantages of the 1st method over the second or vice versa?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Optimus, 2015-03-13
@pibiv

The first option is more practical, but the second one is more reliable. Search engines, for example, have long admitted that, although they do not index, they browse the noindex tag
With nofollow, Google generally has a strange garbage. There are 10 links on the page and the weight for each is 1/10. Google will see the link but will not transfer the weight on it because of the tag. That's why I'm leaning towards the redirect version, but it's better to put it in a separate folder and close noindex and be ready to increase pages in Yandex Webmaster))

P
pibiv, 2015-03-13
@pibiv

My solution code in php

<?php
if(isset( $_GET['url'])){
  $url = $_GET['url'];
  header("Location:$url");
  exit();
}
else {
  header("Location:/");
  exit();
}

Link example site.local/go.php?url= https://toster.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question