| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
thosecars82
Joined: 08 Oct 2008 Posts: 2
|
Posted: Wed Oct 08, 2008 2:46 pm Post subject: custom error page is not working |
|
|
hello there
I have an error page which is working locally with a sentence like this in my .htaccess file:
| Code: | | ErrorDocument 404 http://www.correspondingdomain.com/notfound.php |
For example if I browse a page of the site that does not exist and I do it on my local server installation then I get the remote page: -http://www.correspondingdomain.com/notfound.php
Nonetheless, it turns out that when I try the same thing but browsing the page in the remote server which is not mine, then the default error page is loaded instead of mine when the user browser a page that does not exist.
Do you know why this might happen?
I just thought that it might be because the hosting company did not enable the allowoverride. Do you know if there would be any work around in case they did not enable it and do not want to enable it?
Thanks in advance |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sat Oct 11, 2008 10:04 am Post subject: Re: custom error page is not working |
|
|
I assume you uploaded the .htaccess with this ErrorDocument directive in the domain's root dir.
Usually, there is no need to add the full domain, you could try using :
| Code: | | ErrorDocument 404 /notfound.php |
or :
| Code: | | ErrorDocument 404 notfound.php |
About the reason why it would still not work once done, I think you are right, the hosting settings must be the guilty one, but unfortunately, I cannot think of any workaround in case the ErrorDocument directive was made unavailable.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
thosecars82
Joined: 08 Oct 2008 Posts: 2
|
Posted: Sat Oct 11, 2008 10:14 am Post subject: Re: custom error page is not working |
|
|
The solution was this: it seems that for some reason or another the hosting company does not pay attention to this sentence
ErrorDocument 404 /404.html
So, what do they provide instead? They have a form in their web application in which I can fill the error page I want to set in case I want use a different one from the one enabled by default.
Thanks |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |