1. Andries Lombaard
  2. General
  3. Thursday, 23 August 2018
Please assist in setting up a custom 404 error page(article already created). Thanks.
Responses (1)
Frantisek Accepted Answer Pending Moderation
Linelabox Support
Hi, Please read https://docs.joomla.org/Creating_a_Custom_404_Error_Page

Open file templates/your_template/error.php
Find line:

defined('_JEXEC') or die;


Add below line

if (($this->error->getCode()) == '404') {
header('Location: /index.php?option=com_content&view=article&id=75');
exit;
}


Go to Article Manager > Edit Article > [Publishing] > set "Robots" to "Noindex".
  1. more than a month ago
  2. General
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.