1. เพิ่มโมดูล front ลงใน /modules/front 2. เปิดให้ front page ทำงานที่ /admin/build/modules 3. ตั้งค่า เว็บหน้าแรกที่ /admin/settings/front ดังนี้
- Front Page for anonymous user เขียน html เพ็จ ที่ต้องการให้แสดงลงใน text box Select type: full Redirect to: node
- Front Page for authenticated user Select type: same as anonymous users (เลือกตัวนี้ แล้วไม่ต้อง สร้างเพจใหม่ คือใช้เหมือน anonymous ทั้งหมด ถ้าต้องการสร้างให้แตกต่าง ให้เลือก [...]
1. Enable Clean URLs 2. Enable Path Module and install and enable Pathauto, Global Redirect and Token Modules. 3. Configure the Pathauto Module 4. Install and enable the Meta Tags Module. 5. Install enable the Page Title Module 6. Do NOT install the Drupal Sitemap Module. 7. Fix .htaccess to redirect to “www” [...]
ขันตอนแรกของการทำ SEO ใน drupal จากที่อ่านมา เค้าบอกให้ทำการ enable clean URLs แต่ว่าใน drupal 6.x นี้เองจะสามารถทำได้ก็ต่อเมื่อ host ของเรารองรับการทำ clean urls โดยต้องไปติดตั่ง mod_rewrite ซึ่งปกติน่าจะติดกันมาอยู่แล้ว แล้วก็ไปทำการ enable ให้มันทำงานได้โดย
1. เปลี่ยนชื่อไฟล์ .htpaccess ให้เป็น htpaccess.conf สมมุติว่าไฟล์นี้ของผมที่อยู่ /var/www/drupalsite/.htaccess
mv /var/www/drupalsite/.htaccess /var/www/drupalsite/htaccess.conf
2. จากนั้นไปแก้ไฟล์ vhost ของ apache ให้เปิด mod_rewrite แล้วทำการ Include ไฟล์ htpaccess.conf ดังกล่าวไป
<VirtualHost *> ServerName drupalsite.example.com DocumentRoot /var/www/drupalsite <Directory [...]