Ứng dụng robots.txt trong SEO WordPress 

Ứng dụng robots.txt trong SEO WordPress 

Cấu trúc của WordPress vốn đã rất thân thiện với Search Engine . Ngoài ra còn rất nhiều Plugin tốt hỗ trợ cho SEO. Trong bài viết này chúng ta sẽ tận dụng file Robots.txt để hướng dẫn Bots ” ghé thăm ” những chỗ quan trọng trên site bạn và ngăn nó không vào những nơi ” nhạy cảm “.

>PageRank là gì?

Ứng dụng robots.txt trong SEO WordPress 

Sử dụng Robots.txt để SEO tốt hơn cho WordPress

Cách viết file robots.txt cho WordPress

Không nên cho bots đọc cgi-bin:

    * User-agent: *
    * Disallow: /cgi-bin

Tiếp theo, chúng ta nên hướng dẫn Bots không index những thư mục sau nhằm mục đích bảo mật:

    * Disallow: /wp-admin
    * Disallow: /wp-includes
    * Disallow: /wp-content/plugins
    * Disallow: /wp-content/cache
    * Disallow: /wp-content/themes

Không nên craw feed, Bots sẽ tập trung vào content hơn từ đó tác động đến thứ hạng trên SERPS ( Search Engine Results Page):

    * Disallow: /feed
    * Disallow: /*/feed

Tiếp tục bỏ Comments:

    * Disallow: /comments

Để tránh lỗi Duplicate Content, ta ngăn Bots craw:

    * Disallow: /author
    * Disallow: /archives
    * Disallow: /2010/*
    * Disallow: /2011/*
    * Disallow: /2012/*

Theo xu hướng SEO gần đây, nhiều SEOer có khuynh hướng dùng Tag nên ta hướng dẫn Bots craw phần này:

    * Allow: /tag

Cuối cùng, nên để đường dẫn sitemap của bạn:

    * Sitemap: http://yourdomain.com/sitemap.xml.gz

Dưới đây là nội dung hoàn chỉnh của file Robots.txt:

    User-agent: *
    Disallow: /cgi-bin
    Disallow: /wp-admin
    Disallow: /wp-includes
    Disallow: /wp-content/plugins
    Disallow: /wp-content/cache
    Disallow: /wp-content/themes
    Disallow: /feed
    Disallow: /*/feed
    Disallow: /comments
    Disallow: /author
    Disallow: /archives
    Disallow: /2010/*
    Disallow: /2011/*
    Disallow: /2012/*
    Allow: /tag

    Sitemap: http://yourdomain.com/sitemap.xml.gz

Nội dung file Robots.txt trên đây chỉ mang tính chất tham khảo, bạn có thể thay đổi để phục vụ cho mục đích riêng của minh.

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
[Phần 3] - The Blog Model: Sử dụng Doctrine 2 và Data Fixtures

[Phần 3] - The Blog Model: Sử dụng Doctrine 2 và Data Fixtures

This chapter will begin to explore the blog model. The model will be implemented using the Doctrine 2 Object Relation Mapper (ORM). Doctrine 2 provides us with persistence for our PHP objects

Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

I recently was faced with a project where the client has a "database" of items that will be brought into the brand new Drupal 7 site that we are preparing for him.

3 thuận lợi khi bạn sử dụng Git submodules with Drupal

3 thuận lợi khi bạn sử dụng Git submodules with Drupal

While building Drupal websites, we end up building modules for all sorts of random tasks – anything from simply reorganizing the contents of a node object or adding fields to the Site Information page to views plugins or huge integrations.

Công ty diệt chuột T&C

 

Diet con trung