PDA

View Full Version : /htaccess /404 page



Epanel
18-05-2007, 02:19 AM
ok for a year & a half now i've been trying to do a 404 page wid htaccess


could someone send me the .htaccess file to make it & have the 404 page as the link error.php ? ill give rep when i get some :D

Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks :).

RYANNNNN
18-05-2007, 06:08 AM
ErrorDocument 404 error.php

I think, search google for "ErrorDocument" +.htaccess

Heinous
18-05-2007, 06:26 AM
I use;

ErrorDocument 404 http://localhost/cronus/404.php

You can change the 404 and file location to whatever. You can have different error documents for different error codes.

Mentor
18-05-2007, 02:44 PM
I use;

ErrorDocument 404 http://localhost/cronus/404.php

You can change the 404 and file location to whatever. You can have different error documents for different error codes.

Wouldn't that only work for you though ?? Since im doubtful everyones gonna be running a webserver on there pc contain a file called Cronus o.0

font
18-05-2007, 02:54 PM
Wouldn't that only work for you though ?? Since im doubtful everyones gonna be running a webserver on there pc contain a file called Cronus o.0
I think you'd have to change the url he has, to the one you want. :)

Heinous
19-05-2007, 04:16 AM
Wouldn't that only work for you though ?? Since im doubtful everyones gonna be running a webserver on there pc contain a file called Cronus o.0
Hence why I said he could change it, lol..

Recursion
19-05-2007, 06:46 AM
I use;

ErrorDocument 404 http://localhost/cronus/404.php

You can change the 404 and file location to whatever. You can have different error documents for different error codes.

If you want people to see that 404 page on your home server, you should change it to /cronus/404.php

Blob
19-05-2007, 09:13 AM
It took you a year and a half to search google with htaccess 404 page?

bad-dj
19-05-2007, 10:53 AM
OMG ok i googled this and found it is like 5 secs here it is



Here are three examples of specifying error documents which will be called for a given error condition (note that you can use relative "thisfile.html" or absolute addressing "/full-path -to-your-account/thisfile.html"):

ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html

RNelson
19-05-2007, 11:39 AM
LOL owned.
It took you a year and a half to search google with htaccess 404 page?

Heinous
19-05-2007, 05:04 PM
If you want people to see that 404 page on your home server, you should change it to /cronus/404.php
No way, really?!

I'm testing locally, thus I use localhost. Don't assume I don't know how to use htaccess.

OMG ok i googled this and found it is like 5 secs here it is



Here are three examples of specifying error documents which will be called for a given error condition (note that you can use relative "thisfile.html" or absolute addressing "/full-path -to-your-account/thisfile.html"):

ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
Well done for pretty much posting what I did.

Want to hide these adverts? Register an account for free!