Share three of the simplest WordPress comments Link Jump method

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

For the WordPress program we all know, it is a PHP language and MySQL database development of open source, free blog program, but also now the most powerful blog programs, Plug-ins most, the most plasticity of the program. It is easy to use and install. And now Wordprss program not only do blog, also have a lot of friends take it to do enterprise station, information station, portal and so on.

Today, the tension is about WordPress program to do Blog station comments Jump method, we all know that the WordPress program because it is an open source program in English, so every day blog has a lot of English spam comments, although we are useful to shield the comments of the plugin, but also afraid in case, And a lot of spam comments in the site links, are some garbage stations. In order to our site can be more friendly to a variety of search engines, we will make a comment jump. May have some friends will say that wordpress default message URL has been added rel= ' external nofollow ' to prevent spam comments, but I want to tell you that Baidu for external nofollow has not yet done the full significance of the neglect, So we need to do a comment link jump. Finally, we recommend that you also add rel= ' external nofollow ' (PS: personal advice) while doing a jump.

  

Below I would like to tell you the simplest three kinds of wordpress comment link Jump method, a novice friend will be a look.

First: First we create a new go.php file, write it in go.php: and then save it. Then we upload the go.php to the WordPress root directory. Next we go into WordPress backstage → look → edit, find the right comment template or template function Click to enter, find the corresponding comment link place, such as:

< a id= "commentauthor-" "href=" "rel=" external nofollow "Target=_blank >

We just need to change this piece of code to:

< a id= "commentauthor-" href= "Your URL/go.php?url=" rel= "external nofollow" Target=_blank >

This completes the WordPress comment jump. Last but not least, when you're done, make sure you add disallow to your website's files:/go.php? To shield spiders from crawling.

The second: roughly the same as the previous method, we also create a new go.php file, write in go.php: and then save it. Then we upload the go.php to the WordPress root directory. Next we go into WordPress backstage → look → edit, find the right comment template or template function Click to enter, find the corresponding comment link place, such as:

< a id= "commentauthor-" "href=" "rel=" external nofollow "Target=_blank >

We just need to change this piece of code to:

< a id= "commentauthor-" href= "Your URL/go.php?" rel= "External nofollow" Target=_blank >

This completes the WordPress comment jump. Last but not least, when you're done, make sure you add disallow to your website's files:/go.php? To shield spiders from crawling.

The third: Compared to the above two, this third kind of may be troublesome, I will give you step-by-step.

1. A new folder name will go, new index.php in this folder

2, with DW Open the Go folder in the index.php, add the following code to save:

< PHP

$url = $_get[' url '];

Header ("Location: $url");

? >

3, the Go folder uploaded to the wordpress root directory, we then enter the WordPress backstage, in the wordpress background → look → edit, find the right comment template or template function Click into, find the corresponding comments link places, such as:

< a id= "commentauthor-" "href=" "rel=" external nofollow "Target=_blank >

We just need to change this piece of code to:

< a id= "commentauthor-" href= "Your URL/go/?url=" rel= "external nofollow" Target=_blank >

4, finally we must also add disallow in the website:/go to shield spider crawl. PS: The last third method is the tension in their own blog useful. )

The above is the tension for everyone to organize and share the simplest three kinds of wordpress comment Link Jump method, hope for everyone useful. This article by the tension http://zhangliseo.com original writing, reprint please indicate the website, thank you!

This article by the tension http://zhangliseo.com original writing, reprint please indicate the website, thank you! This article by the tension http://zhangliseo.com original writing, reprint please indicate the website, thank you! This article by the tension http://zhangliseo.com original writing, reprint please specify

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.