It is currently Sat Dec 07, 2024 3:09 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Custom 404 page not working
PostPosted: Fri Apr 19, 2013 5:48 am 
Newbie
Newbie

Joined: Fri Apr 19, 2013 5:36 am
Posts: 2
Hi all,

I have created a custom 404 page in my root directory and have also modified the .htaccess file to set the ErrorDocument to my specified page. When I try to purposely visit a non-existant page to trigger the 404 response, I am still sent to the default 404 document that says:
Quote:
Not Found

The requested URL /example was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.33 Server at domain.com Port 80


My file schema is as follows:
Code:
domain.com
    .htaccess
    404page.php
    index.php
    etc...


Also, the line I've entered in my .htaccess file:
ErrorDocument 404 /404page.php

Why could be causing my page to not be displayed?

Advice appreciated!


Top
 Profile  
 
 Post subject: Re: Custom 404 page not working
PostPosted: Fri Apr 19, 2013 3:49 pm 
Newbie
Newbie

Joined: Sun Feb 13, 2011 2:29 pm
Posts: 16
Long time ago I couldn't set 404 page with .htaccess too. But I found such option in CP. Enter Hosted Domain menu. You can find Edit Domain button there and enter custom URL for 404 page.
It's working fine for users, but not for search engine crawlers. Server triggers 302 response instead of 404.


Top
 Profile  
 
 Post subject: Re: Custom 404 page not working
PostPosted: Fri Apr 19, 2013 6:08 pm 
Newbie
Newbie

Joined: Fri Apr 19, 2013 5:36 am
Posts: 2
That solved the problem perfectly! Pesky small button.

Thanks so much, Vandersur.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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