Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Making Custom Error Pages With Cpanel, Not working properly
reconraiders
post Jun 30 2007, 08:06 AM
Post #1


Super Member
*********

Group: Members
Posts: 221
Joined: 6-June 07
Member No.: 44,288



I set up the custom error pages using CPanel, but they aren't working properly. I get the standard error code.

CODE
The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Plust that little bit on the end. Am I doing something wrong or is it something that needs to be handled by an admin?
Go to the top of the page
 
+Quote Post
shadowx
post Jun 30 2007, 11:45 AM
Post #2


A clever man learns from his own mistakes, a WISE man learns from those of OTHERS
*********

Group: [HOSTED]
Posts: 884
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719



EDIT: i realise you use the cpanel tool to set this up, first off double check in cpanel that its all saved correctly, if it is then proceed to the steps below, it could be something that cpanel has done wrong or you might have clicked the wrong button or something. smile.gif

If im right the second line of that error message means you have set up a custom error page but the server cant find it. Make sure its named correctly, usually i think its "4O4.html" and make sure its in the right directory, usually the public_html directory and make sure it has permissions of "read" at the very least.

heres a good link that should help: http://www.thesitewizard.com/archive/custom404.shtml just double check youve set it up correctly and if it still doesnt work post back with details like the code used in .HTACCESS and the file location/URL of the custom page. smile.gif

This post has been edited by shadowx: Jun 30 2007, 11:47 AM
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jun 30 2007, 08:57 PM
Post #3


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,434
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I never got used to the GUI of cpanel for making my own custom page. Perhaps it was too simple for me?? lol just kidding.

This is what I did. And you can name your custom error page whatever you like--I made mine with PHP extension and it's working beautifully.

1) make new file called .htaccess Note that there's DOT before the word htaccess. Any regular NotePad editor will do and you can always rename it if it's different via FTP client or cPanel.

2) enter the following lines:
QUOTE

You can save your custom error page with any file name. All you need to do is match the file being called by ErrorDocument command.

3) place .htaccess file under the correct folder. If you have add-on domain place .htaccess under that folder and double check that the URL listed in .htaccess is the correct one.

You should now be able to see your error page. Good luck.

For those who are wondering the reason for custom error page: it's a great way to prevent search engines from dropping your site/page due to "broken link" or "bad request" I set mine so that it shows the message "page you're requesting cannot be found" and included my sitemap page underneath. If you are critical about visitor's traffic this is one sure way for them to stick around.
Go to the top of the page
 
+Quote Post
reconraiders
post Jun 30 2007, 10:45 PM
Post #4


Super Member
*********

Group: Members
Posts: 221
Joined: 6-June 07
Member No.: 44,288



Thanks a lot! I'm not too familiar with htaccess codes and stuff. I did what you said and it works fine now! Thanks very much. Cpanel is letting me down though sad.gif
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jun 30 2007, 11:36 PM
Post #5


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,434
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



cPanel is a very powerful tool for web host managing. However, if you're not familiar with easy-to-do interface it can work against you.

Sometimes the old manual and simple ways are the best solution.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. 403 Forbidden Error When Accessing My Site(10)
  2. My File Manager Is Working(2)
  3. Problems With Outlook Express(6)
  4. Error Code In Subscriptions Page(5)
  5. .php?id=html Not Working(15)
  6. Problem Creating Email Accounts In Cpanel(13)
  7. My Subdomain Not Working(3)
  8. Cannot Access Cpanel...(3)
  9. Question Regarding Cpanel Backup(4)
  10. My Cpanel(11)
  11. Cpanel Blocked(6)
  12. My Opinions On Trap17(1)
  13. Server Issues? Web Site Down? Cpanel Access?(48)
  14. Phpmyadmin Error(4)
  15. Cpanel Help, Trouble Logging In.(4)
  1. Phpmyadmin Error [resolved](7)
  2. Unable To Replace .png File In Directory(7)
  3. File Manager Not Working(2)
  4. Official: Can't Access My Cpanel - Supports From Admins(69)
  5. Coppermine Gallery Error(2)
  6. Page Load Error When Accessing Cpanel(0)
  7. Backup Not Working [resolved](5)
  8. Can't Access My Site An Cpanel(4)
  9. Error 28 (on Phpmyadmin)(6)
  10. Fantastico And Cpanel Skin Problem.(1)
  11. Gallery Not Working(2)
  12. Phpbb3 - Error 28(5)
  13. I Cannot See My Website Or Log Into Cpanel(7)


 



- Lo-Fi Version Time is now: 25th July 2008 - 10:41 AM