Bu mod sayesinde sitenizde artık hatalı linke giderse sayfa bulunamadı (error 404 - page not found) yerine sitenizden belirlediğiniz sayfa çıkacak (fusion klasörü dışında da geçerli hem de
), ayrıca isterseniz kişinin nereden geldiği vs de email olarak mailinize gönderilebilecek
Within this mod, you can generate custom 404 error pages for php fusion over its environment, and the code can even inform you with email messages about the error page
yapacaklarınız (to do):
sitenizin ana klasöründe bir .htaccess dosyası oluşturun, eğer varsa da açın ve ilk satıra şunu ekeyin
Generate a simple .htaccess file into your ftp’s root and just add the following code into it (if there’s one already, addthis as first line)
ErrorDocument 404 /404.phpDaha sonra şu kodu fusion kök klasörüne 404.php olarak ekleyin:
Then Add this code into fusion’s root folder as 404.php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
/*-----------------------------------------------------*\
| 404 Sayfa Bulunamadı Modülü |
| Kodlayan: SoulSmasher - phpfusion-tr.com |
| www.soulsmasher.net |
\*-----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once INCLUDES."sendmail_include.php";
require_once "side_left.php";
$emailuyarisi = 0; //gitmesi için 1, gitmemesi için 0 ya da başka bir sayı
opentable("404 Hatası - Sayfa Bulunamadı");
echo "
404 - Sayfa Bulunamadı
“;
echo “
Ana Sayfaya Dönmek İçin Tıklayın “;
closetable();
/*e-mail uyarısı için bölüm*/
if ($emailuyarisi == 1) {
sendemail($settings['siteusername'],$settings['siteemail'],$settings['siteusername'],$settings['siteemail'],”404 Hatası”,”Ziyaretçi IP: “.$_SERVER["REMOTE_ADDR"] .
“
Server Adı: ” . $_SERVER["SERVER_NAME"] .
“
Kırık Link: ” . $_SERVER["REQUEST_URI"] .
“
Nereden Geldi: “.$_SERVER["HTTP_REFERER"],”");
}
require_once “side_right.php”;
require_once “footer.php”;
?>
Not: sitenizi klasör altından çalıştırıyorsanız 404.php yi fusion klasörünüz içine atın ve htaccessdeki eklemeyi şöyle değiştirin (fusion yerine fusionun kurulu olduğu klasör adını yazın):
Note: If you’re running fusion under a folder, then just edit the .htaccess file as like this (edit the fusion as the folder root of php fusion):
ErrorDocument 404 /fusionklasörü/404.phpayrıca her hatalı sayfanın email olarak size bildirilmesini istiyorsanız:
$emailuyarisi = 0;buradaki 0′ı 1 yapın
Also If You want to get informed with email messages:
$emailuyarisi = 0;Change 0 with 1
0 Responses to “PHP Fusionda 404 Hata Sayfası Modülü - 404 Page Error Module For PHP Fusion”
Leave a Reply