.htaccess error

Status
Not open for further replies.

GarettM

Posting Freak
Aug 5, 2010
833
136
Hello Im Making a Habbo retro outa scratch and having a issue :]

i want my 404 error to be my error.php file :)

Here is my htaccess:

ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 405 /error.php

But if i type in
 

GarettM

Posting Freak
Aug 5, 2010
833
136
Im using that starter cms i made i showed you remember Is there a way to make it so .htaccess 404 error Goes to 404.php no matter if its in a sub directory or not?
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
You could just create 404.shtml, 405.shtml etc and store them in your root (/) directory. You wouldn't need to write the .htaccess rules for it.
 
Status
Not open for further replies.

Users who are viewing this thread

Top