A large number of external links on the pages of suspicion for the search engines. Ample external links associated with these sites with directories of links and other "evil spirits" with which they try to fight, resulting in a decrease in these pages in search results, if not an exception to the search base.
The presence of excessive external links greatly reduces the significance of other, more important links on the page. In particular, passed Google Page Rank (PR) is divided equally on all the links present on the page, regardless of the attribute rel = "nofollow" in exile.
Do not just search engines, but many other robots of various services, such as the exchange of articles, links, etc. take into account the number of external links and the smaller the number, the more valuable the page and site in general, the more advertisers will want to buy links from you. So if you use such services, then you need to reduce this figure.
The usual solution to the problem
This problem is solved mainly in two ways:
- add the attribute rel = "nofollow" tag in the links ( <a href = "vneshnyaya_ssylka" rel = "nofollow" > anchor </ a> );
- Send a link to a special page as a parameter ( http://moy_sayt/redirect.php? url = vneshnyaya_ssylka ). Page redirects the user (making redirect) on the parameter passed to address.
The first method works fully only in Yandex . Google considers those links in the distribution of PR, PR dividing equally among all, however, does not pass PR on the link parameter nofollow, and not so surrendered part of PR simply disappears into nowhere. Also, such links adversely affect the performance of stock exchanges links.
In the second method will be treated as internal reference, which eliminates the problems described above. However, manufacturing links page provides a load on the server. Let a small, yet tangible, if options, handled her too much.
Hiding external links using. Htaccess and robots.txt
Faced with the problem of hiding external links , I decided to go a little bit different way than a redirect from a page (a variant of nofollow was not even considered). I solved this problem with . htaccess and robots.txt .
In . htaccess I added the rule:
RedirectMatch 302 / linker / (. *) $ $ 1
Following this rule, the server will redirect the user through the links provided after the linker / , for example, when asked http://moy_sayt/ linker /http://google.ru server redirects the user to the site search engine Google. Passing a function of the server, I unloaded the ferryman PHP, which is now able to spend more time on more important work.
To prevent search engines from indexing links which are redirecting you need to add the following code in your robots.txt file:
User-Agent: *
Disallow: / linker /
3 comments:
much love!
www.oscarkemboi.xyz
This did not work for my website at www.sincats.com. Instead I received a 500 error.
This did not work for my website at www.sincats.com. Instead I received a 500 error.
Post a Comment