FreeHostia Forums
http://forum.freehostia.com/

Looking for some sort of script
http://forum.freehostia.com/viewtopic.php?f=10&t=8846
Page 1 of 1

Author:  marcus_at_trillium [ Mon Feb 18, 2008 3:27 pm ]
Post subject:  Looking for some sort of script

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

Author:  Josh.Waller [ Mon Feb 18, 2008 5:52 pm ]
Post subject: 

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.

Author:  marcus_at_trillium [ Mon Feb 18, 2008 9:19 pm ]
Post subject: 

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

Author:  Josh.Waller [ Mon Feb 18, 2008 10:34 pm ]
Post subject: 

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.

Author:  marcus_at_trillium [ Tue Feb 19, 2008 1:35 am ]
Post subject:  I'm sorry I am a pain in the rear end

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.

Author:  Josh.Waller [ Tue Feb 19, 2008 7:43 am ]
Post subject: 

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.

Author:  marcus_at_trillium [ Mon Mar 31, 2008 10:39 pm ]
Post subject: 

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

Author:  Josh.Waller [ Tue Apr 01, 2008 6:33 am ]
Post subject: 

The ones done by freehostia are handled by Apache. I cant find how to do it (its nothing ive ever done)

Author:  FnCool [ Sat Apr 05, 2008 12:50 pm ]
Post subject: 

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.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/