Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Aug 20, 2004 11:00 pm Reply with quote

Running that module of your choice that serves up custom Apache error pages inside of phpnuke? If so consider this hack for a more complete job of it.

In modules php you will find several instances of:
die("Hi and Bye"); // Just one of these
echo "You are so cool..."; // Just one of these
die ("Sorry, such file doesn't exist..."); // 5 of these

You can replace the smart remarks with real informative errors. Just replace the above messages with something like:
// Forbidden
Header("Location: error.php?op=modload&name=Error&file=403");
exit;

and/or:
// Not Found
Header("Location: error.php?op=modload&name=Error&file=404");
exit;

Of course using the url of your custom error pages in place of these examples.

I'm sure this has been brought up before but it occured to me it was worth posting when I noticed a lot of search engines hitting a module I recently removed. I figured those goofy messages didn't do a thing for them.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Thu Aug 26, 2004 6:02 am Reply with quote

Thanks Six I have all my error pages as custom pages, and people are telling me they miss the flying sheep when they hit a 404

So do I put the url of my 404 page here:

("Location: error.php?op=http: etc etc url of 404/or 403 page");

sorry to be so dim at times. lol

I'll give this one a go.

Cheers!

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©