การปรับแต่ง robots.txt file สำหรับ wordpress

Nov18

robots.txt  เป็น file ที่ใช้สำหรับการปรับแต่งให้ bot ต่างๆ เข้ามาเก็บข้อมูลต่างที่เจ้าของเว็ปต้องการให้ bot นั้นเก็บอะไรออกไปบ้าง  สำหรับการที่เราปิดไม่ให้บางอย่างที่ไม่จำเป็นสำหรับ bot เพื่อเข้ามาเก็บข้อมูลนั้น เราควรจะปิดไว้  ทั้งนี้จะช่วยเพื่อความเร็วในการเข้าไปเก็บข้อมูลในเว็ปของเราด้วย

ซึ้งการทำลักษณะนี้จะช่วยเพิ่มอันดับใน search engine ให้กับเว็ปเราด้วย

ขั้นตอนการทำก็คือให้ทำการ copy  เนื้อหาข้างล่างไปใส่ไว้ที่ notepad ทำการ save แล้วตั้งชื่อ file ว่า robots.txt   และไปใส่ไว้ที่ root folder ที่ฝั่ง host ครับ     แต่อย่างลืมไปเปลี่ยนชื่อ website ที่ ข้างล่างสุด ด้วยนะครับ

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads

# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*

# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

# Internet Archiver Wayback Machine
User-agent: ia_archiver
Disallow: /

# digg mirror
User-agent: duggmirror
Disallow: /

Sitemap: http://www.example.com/sitemap.xml

บทความที่น่าสนใจ:

subscribe to comments RSS

There are no comments for this post

Please, feel free to post your own comment

* these are required fields

Mininoz is powered by WordPress and FREEmium Theme.
developed by Dariusz Siedlecki and brought to you by FreebiesDock.com