redirect error 404 บน joomla
ของ Joomla น่าจะหาไฟล์ error.php ที่อยู่ templates/.../error.php <<ลองหาดูนะ สำคัญ อย่าลืม backup ไว้ด้วย
ถ้าคุณใช้ Joomla 1.6, 1.7, 2.5 หรือ 3.x ใช้โค๊ดนี้:
if (($this->error->getCode()) == '404') {
header('Location: /index.php?option=com_content&view=article&id=75');
exit;
}
แทนที่ข้อมูลตำแหน่ง (index.php? option .. ) ด้วย URL จากรายการเมนูที่คุณสร้างขึ้น
ถ้าคุณใช้ Joomla 1.5 และต่ำกว่า ใช้โค๊ดนี้แทน:
if (($this->error->code) == '404') {
header('Location: /index.php?option=com_content&view=article&id=75');
exit;
}
เครดิตจาก joomla.org