SEO สำหรับ SMF แบบเริ่มต้นนะครับ
1 URLคือการทำให้ url friendly ต่อ search engine โดยการใช้ seo4smf
pretty url download
http://custom.simplemachines.org/mods/index.php?mod=636
การติดตั้ง
1. เข้าผู้ดูแล Admin คับ
2. ศูนย์จัดการแพ็คเกจ
3. Download Packages
4. แพ็คเกจอัพโหลด: กด Browse.. แล้วเลือก MOD ที่เราได้โหลดมา
5. กดอัพโหลด
6. กดเพิ่มโหมด และทำตามขั้นตอนต่อไปจนเสร็จขั้น
แค่ตัวนี้ ก็ช่วยให้
- pretty url
- เปลี่ยน meta tag keyword และ description
- สร้าง sitemap และ url list for google and yahoo
-
submit bookmark สำหรับ ข้อความแรก (submmiting to Delicious, SlashDot, Technorati,
Furl, Digg)- html sitemap
2.sitemap.txtโดย สร้าง file sitemap.txt ใส่ไว้ที่ root ของ smf นะครับ
User-agent: *
Disallow: /*?action*
Disallow: /*sort=*
Disallow: /*msg*
ช่วยให้ bot ง่ายต่อการเข้ามาเก็บ index และหลีกเลี่ยง การเข้าถึง ข้อความซ้ำ
3.Header and Footerการเพิ่ม content ไปที่ header and footer
เปิดไฟล์ Themes/default/index.template.php
ใส่ content ข้างบน
ค้นหา
// Show the menu here, according to the menu sub template.
template_menu();
แล้วก็เพิ่ม บรรทัดนี้ ข้างล่างจากที่ค้นหา
include_once('banner1.txt');
เมื่อเสร็จแล้วก็จะเป็นแบบนี้
// Show the menu here, according to the menu sub template.
template_menu();
include_once('banner1.txt');
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
ใส่ content ข้างล่าง
ค้นหา
// Show the "Powered by" and "Valid" logos, as well as the
copyright. Remember, the copyright must be somewhere!
echo '
แล้วก็เพิ่ม บรรทัดนี้ ข้างบนจากที่ค้นหา
include_once('banner2.txt');
เมื่อเสร็จแล้วก็จะเป็นแบบนี้
</div>';
include_once('banner2.txt');
// Show the "Powered by" and "Valid" logos, as well as the
copyright. Remember, the copyright must be somewhere!
echo '
ใส่ content ใน banner1.txt และ banner2.txt โดยใช้ html ทั่วไปครับ
หวังว่าจะมีประโยชน์ บ้างนะครับ....ขอบคุณครับ