Ứ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

 
DRUPAL FEATURES to avoids headaches and reduces merge conflicts

DRUPAL FEATURES to avoids headaches and reduces merge conflicts

Features play a significant role in any major Drupal 6 or 7 project. The organization of features is often overlooked, but becomes important as a project grows. Agreeing on an effective organization strategy avoids headaches and reduces merge conflicts

Phần mềm dựng phim chuyên nghiệp – Vị thế nào cho Final Cut Pro X?

Phần mềm dựng phim chuyên nghiệp – Vị thế nào cho Final Cut Pro X?

Có lẽ cái tên Final Cut Pro X – phần mềm dựng phim chuyên nghiệp trên nền tảng Macintosh của Apple đã dần bị lãng quên khi Adobe Premiere Pro đang được sử dụng rộng rãi trên toàn thế giới

Hướng dẫn tối ưu Drupal 8 Performance năm 2020

Hướng dẫn tối ưu Drupal 8 Performance năm 2020

I have really enjoyed how much easier it is to make Drupal 8 performant compared to its predecessors. When I first started working with Drupal 8 performance, I was surprised how few of the tips and tricks I used from Drupal 7

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

 

Diet con trung