error redirect no longer works - Joomla! Forum - community, help and support


i have been using

code: select all

<?php
if (($this->error->getcode()) == '404') {
header('location: http://yourdomain/page-not-found');
exit;
}
?>


in error.php great effect, until recently. seems no longer work.

now on error there 'article not found' or 'category' not found , not error page created.

interestingly when 'search engine friendly urls' switched off redirect goes home page.

i have read documentation on https://docs.joomla.org/creating_a_custom_404_error_page hasn't changed.

the error.php in top level of template directory seems complete ignored. can put whatever in no effect





Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support