การทำ SEO สำหรับเวบที่ใช้ SMF

ปักไว้ก่อน ช่วงนี้กำลังทำเวบที่ใช้ SMF หาวิธีดันเวบขึ้นหน้าแรกกูเกิ้ล

ทิปการทำ SEO สำหรับ SMF ในทิปนี้อาจจะพื้นฐานแต่รับรองมีผลต่ออันดับการค้นหาแน่นอน

1.URLs อันดับแรกเลยคือโครงสร้างของ URL ถ้า URL เว็บเรา Friendly แล้วละก็ Search Engine หลงแน่นอน
-ค่าปกติ SMF URL: hxxp://smfeasy.com/index.php?topic=1.0
-Friendly URL: hxxp://smfeasy.com/index.php/topic,1.0.html
-Pretty URL: hxxp://smfeasy.com/smf

ลำดับความถูกใจคือ Pretty URL > Friendly URL > ค่าปกติ SMF URL

2.Robots.txt ต่อมาคือลดปัญหาการซ้ำซ้อนของข้อมูล (Duplicate Content) ด้วย robots ปัญหาเรื่องการซ้ำซ้อนของข้อมูลถือว่าเป็นเรื่องใหญ่เพราะ search engine ค่ายต่างๆไม่ชอบ ถ้าเว็บเรามีข้อมูลซ้ำซ้อนมากจะมีผลต่ออันดับในการค้นหา search engine จะนำเว็บอื่นๆที่คีย์เดียวกัน แต่ข้อมูลไม่ซ้ำมาแสดงผลแทนทำให้อันดับของเราตกไป

วิธีการแก้ไข สร้างไฟล์ robots.txt เอาโค๊ดด้านล่างไปใส่ แล้วเอาไปไว้ในไดเรกตอรี่ html เว็บของเรา ย่ำว่าโค็ดในตัวอย่าง SMF เท่านั้น CMS ค่ายอื่นๆ ต้องไปปรับแก้อีกที
User-Agent: *
Disallow: /Sources/*
Disallow: /Smileys/*
Disallow: /Packages/*
Disallow: /avatars/*
Disallow: /attachments/*
Disallow: /Themes/*
Disallow: /index.php?action=printpage*
Disallow: /index.php?action=post*
Disallow: /index.php?action=permissions*
Disallow: /index.php?action=pm*
Disallow: /index.php?action=help*
Disallow: /index.php?action=register*
Disallow: /index.php?action=login*
Disallow: /index.php?action=mlist*
Disallow: /index.php?action=search*
Disallow: /index.php?action=who*
Disallow: /index.php?*rss*
Disallow: /index.php?action=stats*
Disallow: /index.php?PHPSESSID=*
Disallow: /index.php?*wap*
Disallow: /index.php?*imode*
Disallow: /index.php?action=post*
Disallow: /index.php?action=activate*
Disallow: /index.php?action=reminder*
Disallow: /index.php?action=*
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
Disallow: /*?action*
Disallow: /*sort=*
Disallow: /*msg*

3.H1-H6 Tags ต่อไปคือ H1-H6 แท็ก ไว้สำหรับเน้นหัวข้อที่สำคัญ ส่วนใหญ่จะใช้ตัวหนากันแต่หารู้ไม่ว่า H1-H6 มีผลต่อการค้นหามากกว่า ยกตัวอย่างเช่นเวลาเราอ่านหนังสือพิมพ์ ตรงไหนที่เราสนใจมากที่สุดเป็นอันดับแรก คำตอบนั้นก็คือ พาดหัวข่าวนั้นเอง search engine ก็เช่นเดียวกันจะสนใจ H1-H6 ก่อนเป็นอันดับแรก

4.Tagged ม็อดไปดูที่ Simple Machines forum แท็กคือ คำสั้นๆ 2-3 คำ ที่เอาไว้อธิบายว่าหัวข้อที่เราเขียนเกี่ยวกับเรื่องอะไร เช่น SMF,SEO,Google เป็นต้น

5.Meta Tags คือ โค้ดส่วนหนึ่งของ HTML นั้นเอง ถ้าเราขาดเมตาเหล่านี้ไปจะมีผลต่ออันดับในการค้นหา เช่น description, keywords เป็นต้น Meta ของ SMF สามารถแก้ไขเพิ่มเติมได้ที่ไฟล์ index.template.php

6.Header and Footer คือส่วนหัวและส่วนท้ายของเว็บนั้นเอง ใส่เนื้อหาให้ครบถ้วนเพื่อที่ search engine จะได้เข้ามาเก็บข้อมูล มีผลไม่มากต่อการค้นหา แต่เพื่อความสวยงามและเป็นระเบียบ