Advertisement
pusatdata

JOOMLA: Custom Error 404 Halaman Tdk Ditemukan

May 23rd, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. http://www.hotjoomlatemplates.com/blog/joomla-template-tutorial/28-joomla-404-component-not-found-page-change
  2.  
  3.  
  4. Joomla 15:
  5.  
  6. Buka file: templates/system/error.php
  7.  
  8. Tambahkan kode berikut:
  9. if (($this->error->code) == '404') {
  10. echo file_get_contents('http://kabupatenkota.com/component/content/article/5-halaman-keterangan.html');
  11. }
  12. else
  13. {
  14.  
  15. setelah kode ini:
  16. defined( '_JEXEC' ) or die( 'Restricted access' );
  17.  
  18. pada akhir file tambahkan kode ini:
  19. <?php
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement