Ở phần trước, mình đã giới thiệu với các bạn bài đầu tiên trong loạt bài về thủ thuật SEO (thủ thuật SEO (phần 1)). Hôm nay, chúng ta sẽ cùng đến với phần 2 của loạt bài thủ thuật SEO nào.
Cấu trúc điều khiển Robot.
Robot.txt:
Vị trí: http://example.com/robots.txt
Ví dụ: http://dichvuseo.biz.vn/robots.txt
User-agent: googlebot
Disallow: /no-google.html
Sitemap: http://example.com/sitemap.xml
X – Robots:
Vị trí: Được gửi trong header của HTTP
X-Robots-Tag: noindex
Meta Robots:
Location: Trong phần <head> của HTML
<meta name=”ROBOT NAME” content=”ARGUMENTS” />
Tốt nhất là:
Trong khi robots.txt có thể hạn chế khả năng crawl, thì X-robots và meta robots sẽ loại bỏ URL khỏi kết quả tìm kiếm.
Các đối số:
- Nofollow (Không được follow link này)
- Noindex (Không được index)
- Noarchive (Không lưu trữ)
- NoODP (Không hiển thị Open Directory)…hoặc kết hợp (noindex, nofollow)
- Nếu thẻ META robot không xác định thì mặc định là “INDEX, FOLLOW”
Cấu trúc Sitemap.
XML sitemaps:
<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://w w w.sitemaps.org/schemas/sitemap/0.9″>
<url>
<loc>http://www.example.com/</loc>
<lastmod>1970-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
File index sitemap:
<?xml version=”1.0″ encoding=”UTF-8″?>
<sitemapindex xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<sitemap>
<loc>http://w w w.example.com/sitemap1.xml.gz</loc>
<lastmod>2004-10-01T18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://w w w.example.com/sitemap2.xml.gz</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>
Vị trí mặc định:
http://www.example.com/sitemap.xml
Ví dụ: http://dichvuseo.biz.vn/sitemap.xml
http://www.example.com/sitemap.xml.gz
Ví dụ: http://dichvuseo.biz.vn/sitemap.xml.gz
http://www.example.com/sitemap.gz
Ví dụ: http://dichvuseo.biz.vn/sitemap.gz
Một số thẻ Metadata quan trọng:
Facebook open graph:
<head>
<meta property=”og:title” content=”Title Goes Here”>
<meta property=”og:description” content=”description-goes-here”>
<meta property=”og:type” content=”your-content-type-goes-here”> (e.g., “article”)
<meta property=”og:url” content=”http://www.your-site.com/”>
<meta property=”og:image” content=”http://www.your-site.com/image.jpg”>
<meta property=”og:site_name” content=”your-site-name”>
<meta property=”fb:admins” content=”your-Facebook-page-user-ID”>
</head>
Twitter Card:
<head>
<meta name=”twitter:card” content=”summary”>
<meta name=”twitter:url” content=”http://www.example.com/your-url-goes-here/”>
<meta name=”twitter:title” content=”Title Goes Here”>
<meta name=”twitter:description” content=”Your description goes here.”>
<meta name=”twitter:image” content=”http://example.com/image.jpg”>
</head>
Google +:
<html itemscope itemtype=”http://schema.org/Article”>
<head>
<meta itemprop=”name” content=”Title Goes Here”>
<meta itemprop=”description” content=”Description Goes Here”>
<meta itemprop=”image” content=”http://example.com/image.jpg”>
</head>
Google Authorship:
Hiện thị thông tin tác giả trong kết quả tìm kiếm của Google:
1. Liên kết nội dung của bạn đến profile của Google+:
<a href=”[profile_url]?rel=author”>Google</a>
2. Liên kết trỏ về trang bạn từ mục “Contributor” trong Google+ của bạn
Google+ Publisher:
Cho các doanh nghiệp, các công ty, tổ chức.
1. Liên kết trang chủ của bạn đến profile của Google+
<a href=”[profile_url]?rel=publisher”>Google</a>
2. Liên kết trang web của bạn đến trang cá nhân Google+.
Kết:
Vậy là hôm nay, Dịch vụ SEO đã giới thiệu với các bạn một vài thủ thuật cơ bản và không kém phần quan trọng về Robots, Sitemap, và những thẻ dữ liệu cho việc kết nối trang web của bạn với những trang mạng xã hội lớn.
Chúc các bạn thành công và hẹn gặp lại!
Mọi sự sao chép ghi rõ nguồn: DichvuSEO.biz.vn