Help Tạo file robots.txt cho xenforo 2

NDK

MasterSergeant
Tham gia
16/03/2015
Bài viết
830
Được Like
743
Tạo file text mới, đặt tên là robots.txt. Sau đó cop đoạn code sau bỏ vào
Mã:
User-agent: *
Disallow: /test/
Disallow: /account/
Disallow: /admin.php
Disallow: /attachments/
Disallow: /conversations/
Disallow: /events/birthdays/
Disallow: /events/monthly
Disallow: /events/weekly
Disallow: /find-new/
Disallow: /goto/
Disallow: /help/
Disallow: /login/
Disallow: /lost-password/
Disallow: /members/
Disallow: /misc/style?*
Disallow: /misc/quick-navigation-menu?*
Disallow: /online/
Disallow: /posts/
Disallow: /recent-activity/
Disallow: /register/
Disallow: /search/
Allow: /
Up lên host ở root ngang hàng index ( tức là sẽ có dạng link là domain.com/robost.txt)
CHịu khó search trước rồi hỏi
 

onlyonelove

MasterCorporal
Tham gia
03/11/2015
Bài viết
367
Được Like
213
phải biết mục đích tạo robots.txt là gì thì mới biết thêm nội dung gì cho nó chứ
 

onlyonelove

MasterCorporal
Tham gia
03/11/2015
Bài viết
367
Được Like
213
nếu em muốn cho google index vào những phần như: bài viết, tags, thành viên ... thì tạo file thế nào ạ ? em đang dùng xenforo 2 ạ
mặc định tạo file robots.txt để chặn google hoặc cung cụ tìm kiếm khác index 1 số trang mình muốn. còn k tạo file thì google sẽ index tất cả
 

huynhvantam123

Corporal
Tham gia
28/08/2018
Bài viết
164
Được Like
43
mặc định tạo file robots.txt để chặn google hoặc cung cụ tìm kiếm khác index 1 số trang mình muốn. còn k tạo file thì google sẽ index tất cả
à vậy thì ko tạo nó sẽ index tất cả ạ. Tại sợ xenforo nó chặn 1 số cái :D cám ơn huynh rất nhiều.
 

vovu76

Private
Tham gia
24/07/2016
Bài viết
6
Được Like
1
Tạo file text mới, đặt tên là robots.txt. Sau đó cop đoạn code sau bỏ vào
Mã:
User-agent: *
Disallow: /test/
Disallow: /account/
Disallow: /admin.php
Disallow: /attachments/
Disallow: /conversations/
Disallow: /events/birthdays/
Disallow: /events/monthly
Disallow: /events/weekly
Disallow: /find-new/
Disallow: /goto/
Disallow: /help/
Disallow: /login/
Disallow: /lost-password/
Disallow: /members/
Disallow: /misc/style?*
Disallow: /misc/quick-navigation-menu?*
Disallow: /online/
Disallow: /posts/
Disallow: /recent-activity/
Disallow: /register/
Disallow: /search/
Allow: /
Up lên host ở root ngang hàng index ( tức là sẽ có dạng link là domain.com/robost.txt)
CHịu khó search trước rồi hỏi
disallow như bác thì hỏng hết
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom