It is currently Thu Mar 28, 2024 12:04 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Looking for some sort of script
PostPosted: Mon Feb 18, 2008 3:27 pm 
Getting Started
Getting Started

Joined: Tue Jul 10, 2007 11:50 pm
Posts: 146
I need some help trying to find a script that does the following:

1. Shows the user what link he typed to get to the 404 page.

so for instance, if I type www.snowneo.com/dlalalaajl and of course there is no page called that, I am brought to the 404 page, and on the 404 page it says "You tried to reach the page: www.snowneo.com/dlalalaajl

Do you know what I mean, I'm trying to explain as best as I can

_________________
http://www.snowneo.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 5:52 pm 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
this is the sort of thing you need

http://www.faqts.com/knowledge_base/vie ... /aid/21773

but it will have to be customised to fit your needs.

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 9:19 pm 
Getting Started
Getting Started

Joined: Tue Jul 10, 2007 11:50 pm
Posts: 146
That is what exactly what I am looking for, but, I want the user to be able to see it. plus I am not good at that type of coding, I'm very lost

_________________
http://www.snowneo.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 10:34 pm 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
try this

Code:
<html>
<body>
<script type="text/javascript">
document.write(window.location);
</script>
</body>
</html>


it worked here without problem. If that does work for yo, then you just need to add

Code:
<script type="text/javascript">
document.write(window.location);
</script>


where you want it to display.

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject: I'm sorry I am a pain in the rear end
PostPosted: Tue Feb 19, 2008 1:35 am 
Getting Started
Getting Started

Joined: Tue Jul 10, 2007 11:50 pm
Posts: 146
I did that, but it is showing it as "http://www.snowneo.com/404.php" instead of "www.snowneo.com/dlalalaajl"

The reason I am doing this, is so that the visitor knows exactly what the url is for the page that they were trying to access.

_________________
http://www.snowneo.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 7:43 am 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
that makes sence because its getting forwarded to the 404 page so its showing the headers for that. Let me think about it and i will try and get back to you.

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 31, 2008 10:39 pm 
Getting Started
Getting Started

Joined: Tue Jul 10, 2007 11:50 pm
Posts: 146
What I am looking for is exactly how Freehostias 404 are.



Code:
Not Found

The requested URL /asdfasdf was not found on this server.
___________________________________________________________
Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-22 mod_ssl/2.0.54 OpenSSL/0.9.7e Server at www.freehostia.com Port 80

_________________
http://www.snowneo.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 01, 2008 6:33 am 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
The ones done by freehostia are handled by Apache. I cant find how to do it (its nothing ive ever done)

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 05, 2008 12:50 pm 
Regular
Regular

Joined: Sun Apr 15, 2007 5:14 pm
Posts: 308
Location: Barrie On Ca
check this out:

http://www.ibdhost.com/errors/
that one seems to have what you want, plus alot more.
you could maybe just remove the stuff you don't want, like where it emails you a record, the user's ip address, and UA info.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ]  Moderators: Moderators, Support Team

All times are UTC


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

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011