Guest User

Untitled

a guest
Oct 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if (($this->error->getCode()) == '404') {
  2. header('Location: /index.php?option=com_content&view=article&id=75', true, 404);
  3. exit;
  4. }
  5.  
  6. <?php
  7. /**
  8. * @package Joomla.Site
  9. * @subpackage Template.system
  10. * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
  11. * @license GNU General Public License version 2 or later; see LICENSE.txt
  12. */
  13. defined('_JEXEC') or die;
  14. if (($this->error->getCode()) == '404') {
  15. header('HTTP/1.0 404 Not Found');
  16. $ch = curl_init( JURI::root() . '/404');
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  18. echo curl_exec($ch);
  19. exit;
  20. }
Add Comment
Please, Sign In to add comment