Aug 8, 2008

Making Custom Error Pages With Cpanel - Not working properly

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

Making Custom Error Pages With Cpanel - Not working properly

reconraiders
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?

Reply

shadowx
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

 

 

 


Reply

BuffaloHELP
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.

Reply

reconraiders
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

Reply

BuffaloHELP
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. error - 357.66 hr back. (1)
Similar Topics

Keywords : making, custom, error, pages, cpanel, working, properly

  1. Cpanel
    (4)
  2. Hosting Problem [resolved]
    403 Forbidden Error occurs whenever I try to access my site (19)
    First off, let me say that I have spent considerable effort and time going through the forums
    seeking solutions for this problem. I have even gone as far as to seek help from the Xisto Live
    support team (they suggested I wait 2 hours and then get back to them. Well I did that, and there
    has been no change, and live support is now down). I've also tried changing permissions on both
    files and folders via Cpanel, but to no avail. I still end up with the same error: QUOTE
    Forbidden You don't have permission to access /index.php on this server. Additionally, a 4....
  3. Wordpress Error - Bytes Exausted [resolved]
    NextGEN Gallery (7)
    Hey, I have just gotten my blog up and migrated it from my own webserver. I have fixed up most
    problems but one issue remains. When I try to upload an image to NextGEN Gallery I get and error
    when it tries to generate a thumbnail. QUOTE Fatal error: Allowed memory size of 33554432 bytes
    exhausted (tried to allocate 1992 bytes) in
    /home/samlock/public_html/wp-content/plugins/nextgen-gallery/lib/thumbnail.inc.php on line 183
    It does it for EVERY image size, so it's not because of a big image. Help, please.....
  4. I Cannot See My Website Or Log Into Cpanel
    (7)
    Ok, I finally got my form approved after that massive wait because of some issue and now, my
    computer decides not to load up my site! - My site does not load up on either browser, I cannot
    ping it (but it resolves the IP) - It loaded ONCE. And never after that - It's not my network, I
    used my neighbors wireless to verify that Can anyone help me? PS. I am samlockart.trap17.com....
  5. Phpbb3 - Error 28
    (5)
    I get the following error when I try changing a users group of my Phpbb3 powered forums. QUOTE
    SQL ERROR Got error 28 from storage engine SQL SELECT ug.*, g.* FROM groups g, user_group ug
    WHERE ug.user_id = 83 AND g.group_id = ug.group_id ORDER BY g.group_type DESC, ug.user_pending ASC,
    g.group_name BACKTRACE FILE: includes/db/mysql.php LINE: 158 CALL: dbal->sql_error() FILE:
    includes/acp/acp_users.php LINE: 1881 CALL: dbal_mysql->sql_query() FILE:
    includes/functions_module.php LINE: 471 CALL: acp_users->main() FILE: adm/index.php LINE: 74 CALL:
    p_master->l....
  6. Gallery Not Working
    (2)
    Alright, the Gallery module from Fantastico always used to work for my site. Now it's suddenly
    stopped functioning and I can't even access the control panel for it. My Iframe page linking to
    it gives one long error message: QUOTE Error Error (ERROR_STORAGE_FAILURE) : * in
    modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error) * in
    modules/core/classes/GalleryStorage.class at line 453 (GalleryStorage::_getConnection) * in
    modules/core/classes/Gallery.class at line 202 (GalleryStorage::search) * in
    modules/core/classes....
  7. Fantastico And Cpanel Skin Problem.
    (1)
    I changed my domain from tf2maps.trap17.com to fearclan.trap17.com recently, and when I did,
    everything was working fine, except cpanel became really ugly with this rvblue skin that I
    couldn't change, and fantastico and phpmyadmin weren't working. Can I get my skin changed
    from rvblue to somethiong better, say the one I had before? I think it was called cpanel mod x3 or
    something. The frontend for rvblue is my cpanel ip:2082/frontend/rvblue/index.html But the one I
    want is my cpanel ip:2082//frontend/x3/index.html which says 404 not found. I really want tha....
  8. Error 28 (on Phpmyadmin)
    What does this error message mean? (7)
    I have a shopping cart system on my website. It always worked before, but all of a sudden, when I
    try to access it i get "Got error 28 from storage engine". Has that got something to do with the
    recent problems again, or can someone tell me what this error message means? Thanks. After posting
    this I noticed I cannot get into my PHPAdmin anymore. It gives loads of errors: QUOTE Warning:
    session_write_close() : SQLite: session write query failed: database is full in
    /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning: session_write_close() :
    Fai....
  9. Can't Access My Site An Cpanel
    already did some sugested things (4)
    I still can't get to my website and cpanel, Tings I did: requested xisto to unblock my ip
    cleaned my cache/cookies Did this with both IE and FF When I am @ my dads house he can acces my
    website. So I guess it is still an ip problem. I did read some posts but couldn't find a
    solution. Thx in advance,....
  10. Backup Not Working [resolved]
    (5)
    I am trying to backup my files on my account(in preparation for the next server disaster), and I am
    unable to download it. In my CPanel I goto the back-up screen to generate a full backup. Once
    that's done and its ready to be downloaded, It only downloads to 13% or 50mb before stopping.
    With and without a download manager. It doesn't help that resume is not supported in download
    managers. I have too many files on my account to backup with an FTP client, that would take hours
    and hours. What can I do to get a backup of my account?....
  11. Page Load Error When Accessing Cpanel
    (0)
    Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
    password. I have tried the link that is located in the Credit System 2.0 I have tried the links
    with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
    load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
    can't even get cpanel to TRY to load" thread. Thanks in advance.....
  12. Coppermine Gallery Error
    (2)
    Okay.. so i have my gallery set up at photos.chantellepaige.org and everytime i try to access it i
    get this error "Coppermine critical error: Unable to connect to database ! MySQL said: Access
    denied for user 'giselle_copp1'@'localhost' (using password: YES)" how do i change
    the password etc?? or fix the problem??....
  13. Official: Can't Access My Cpanel - Supports From Admins
    (69)
    Scroll down to Post #8 for Admin Support Ok I've read stuff here and there in the support
    forum and shoutbox about the recent trap17 server problem. I'm extremely confused. Some people
    say that their websites are working fine. Some people are experiencing different issues from mine,
    had their website reset or something. I can access my website on the gamma server, so I assume that
    if I unpark and park my domain again, I can get it to work like the last time. I accessed my cpanel
    at bishoujo.trap17.com/cpanel because the 'Access CPanel' link on the fo....
  14. File Manager Not Working
    (2)
    When I goto upload files using the file manager(legacy mode), the files do not upload correctly.
    Every time I try to upload a file, it takes the time to upload it, but the file always comes out
    being 0kb so it does not upload the file. Why is this happening?....
  15. Unable To Replace .png File In Directory
    Can't even delete it using Cpanel (7)
    I can't delete a little file using file manager in Cpanel. I'm trying to delete a .png
    image, actually, I'm trying to replace it. The response comes back as a success, but when I
    reload my site it's still there. Then I go back to the file manager and go up a level, then back
    and WOOP! There it is! I'm beyond frustrated here. What is going on?....
  16. Phpmyadmin Error [resolved]
    (7)
    I get this error message each time I attempt to work phpMyAdmin. QUOTE Cannot start session
    without errors, please check errors given in your PHP and/or webserver log file and configure your
    PHP installation properly. Help would be very grateful.....
  17. Cpanel Help, Trouble Logging In.
    Cannot login as it states "Login Attempt Failed!" (4)
    Before I was able to login within my Cpanel without problem but now I try to login and it states
    "Login Attempt Failed!" which makes no sense. I made sure nothing was written incorrectly within
    the fields but yet I get this error. ;-; I hope I wasn't hacked or anything.... anyone has any
    idea of what this could mean?....
  18. Phpmyadmin Error
    Not able to enter PhpMyAdmin (4)
    Currently I try to access my PhpMyAdmin and I get the following error displayed among the screen:
    My PhpMyAdmin worked prior the migration but suddenly stopped working after. I wanted to know if
    anyone else is getting this error also or anyway can help me fix this o.o.....
  19. Server Issues? Web Site Down? Cpanel Access?
    Server Migration issues to report. (48)
    I tried downloading my email from website this morning and Thunderbird said it couldn't access
    it the server. Then I tried loading my website - to no avail. Does anyone have any idea what's
    going on? Is anyone else experiencing this? Seems like this is the second time this spring this has
    happened. Is an upgrade going on, or something? Thanks in advance for your help! ....
  20. My Opinions On Trap17
    Trap17 is more navigatable and has a cooler cPanel than computinghost. (1)
    Trap17 is more navigatable and has a cooler cPanel than computinghost... This may be opinion, but
    the HTML editor on computinghost is long gone. The cPanel is the newer version but as always newer
    isn't always better. So what if they have a new cpanel (ensim did the same thing)…the fact is
    they left old software on for years when much newer and more secure versions are ready. Hell, php6
    is about to come out. So in two years plesk, cpanel and ensim will finally go to php6 when php 8 is
    available. Just the inablilty to apply security patches alone is enough to nev....
  21. Cpanel Blocked
    (6)
    Well, im in school a lot, & before i could access my cpanel.. & website, but now everything thats
    hosted by trap17 wont work, is there anyway to unblock the port? some proxy of some sort.. idk
    really.. help would be much appreciated /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  22. My Cpanel
    c panel (11)
    ok im hosted but when i tried to go to my c panel all it did was say login failed am i doing
    something wrong and if so can someone tell me or can an admin pm my user and pass for the c panel
    thated help ill be cheaking this post please help and thank you.....
  23. Cannot Access Cpanel...
    (3)
    hey guys, its starting to irritate me how my computer is somewhat dumb...I don't know if its
    something I did or what, but maybe somebody can help. I go to my cpanel, from any link I try it says
    internet explorer cannot find page or whatever the heck it says...but wait....i go to my
    laptop...and what happens? perfect, however i hate my laptop to death cuz it does not have nearly
    anything and im not supposed to use it for anything but work, and its connection SUCKS...so ya, does
    anybody think they know how to fix it? im trying to download firefox and or opera right no....
  24. My Subdomain Not Working
    imbibe.in (3)
    I have a addon domain in my account (ramansingla.info): imbibe.in All subdomains on imbibe.in work
    fine but one. ike.imbibe.in isn't working. It's more than 24 hrs that I created it. Also
    when I tried to change Nameservers for ramansingla.info at GoDaddy for Primary Nameserver I entered
    NS.COMPUTINGHOST.COM & GoDaddy said Invalid. Kindly help as it is urgent. Thanks & resolved .......
  25. Problem Creating Email Accounts In Cpanel
    (13)
    this is the message i recieve... "The e-mail account xxxxxxxx@ wildcatexotics.com with the login
    Sorry, you have exceeded the maximum allowed email accounts. and password xxxxxxxx with a quota of
    unlimited megabytes was successfully created." can an admin please help me with this issue?....
  26. .php?id=html Not Working
    (15)
    I use a single php file for all my tag decorations and image calling so that each page is lighter
    and therefore isn't bogged down with the same repeated code over and over, which allows me not
    only to much easier change my layout and design (as I often do) but once I've finally gotten it
    up and working here, I realized none of the links work, I doubled, and triple checked them over and
    over again to make sure I wasn't making a mistake. I swore trap17 supported php, so why
    isn't it working? Am I missing some sorta code that i need to add, or need to take a....
  27. Error Code In Subscriptions Page
    problems subscribing to topics (5)
    I'm seeing some weird warning message show up at the top of my page when I go into "my
    controls," then load my topic subscriptions page. At the top of the page, the following code appears
    several times: IPB WARNING in_array() : Wrong datatype for second argument (Line: 2711 of
    /sources/action_public/usercp.php) I'm guessing maybe that has something to do with the fact
    I'm having problems subscribing to my topics and posts? Thanks in advance for your help.....
  28. Problems With Outlook Express
    My email configuration isn't working (6)
    Does anyone have a clue as to why my outgoing email isn't working with Outlook express? I can
    get incoming mail, but I'm getting an error when I try to send email. I followed the
    configuration instructions, but it still isn't working correctly. I get an error everytime.....
  29. My File Manager Is Working
    (2)
    I tried to change the html for my site in file manager but it just has the default page - the one
    when you activate your site. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    How do i change files?....
  30. 403 Forbidden Error When Accessing My Site
    (11)
    umm this is a problem that i have been looking in other topics to try to fix but i can't seem to
    find a answer to what i lookin for. I got my site workin again the other day ok and so i went on to
    see it (so i can make more changes) and when i got there i got this QUOTE Forbidden You
    don't have permission to access / on this server. Additionally, a 403 Forbidden error was
    encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at
    www.clansga.trap17.com Port 80 now i looked at everything and i can't seem to find t....

    1. Looking for making, custom, error, pages, cpanel, working, properly

Searching Video's for making, custom, error, pages, cpanel, working, properly
advertisement



Making Custom Error Pages With Cpanel - Not working properly



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE