|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Error page extentions
On my site, Cpanel gives me the option to custimize my own error pages for my site.... I figured out that all it was doing was adding a file with the number of the error (ie: 404) with a .SHTML extention, I tried switching the extention to .PHP and write one with PHP but it never got called....
Do error page extentions HAVE to be .SHTML? And can you custimize all error pages in this wa -- Cpanel only offered me a few of them as options.... Thanx ![]()
__________________
- "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started. - Why know the ordinary when you can understand the extraordinary? - Sponsor my caffeine addiction! (36.70 USD recieved so far -- Latest donor: Mark Foxvog) |
|
#2
|
||||
|
||||
|
anybody?
|
|
#3
|
|||
|
|||
|
No. Error pages do not have to be .shtml files. Yes, I'm sure you can customize any or all error pages on your site, but for security reasons, the administrator may not allow access to various pages. What extensions will work depend on the server's setup . Instead of .php, try .htm or .html and see what happens.
|
|
#4
|
||||
|
||||
|
I tried renaming it to .html and .htm, but it didn't work, only with .shtml....
|
|
#5
|
|||
|
|||
|
I don't know enough about server setup to say for sure, but it sounds like they've got it restricted to the one extension.
|
|
#6
|
|||
|
|||
|
Answer one question. Request a 404 error on your site and post to me the exact error message, look for words similer to, additionally a 404 error was encountered while trying to call 404
|
|
#7
|
||||
|
||||
|
Quote:
That's what was returned when I use a 404.html doc.... Last edited by B-Con : August 9th, 2004 at 03:54 PM. |
|
#8
|
||||
|
||||
|
Have you tried configuring an htaccess file to point to a different file type?
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#9
|
|||
|
|||
|
Sounds like thats what he needs to do, because what its doing is throwing a 404 error, then another 404 error (making it default to standard 404) because it cant find the 404 file!
|
|
#10
|
||||
|
||||
|
Ooohh.... OK, lemme try that and see if it works....
|
|
#11
|
||||
|
||||
|
You'll have to set 'ErrorDocument 404 /path/to/page.php' in your apache config file. Wether or not you can touch that is up to your host... Try setting it in an .htaccess file, chances are that's what the host has called it if they allow changes.
Right now it probably points to 'ErrorDocument 404 /path/to/page.shtml', and so that's that page it looks for...
__________________
May the source be with you - obi_wonton |
|
#12
|
|||
|
|||
|
Since you are using Cpanel, you might be on a linux host, which means that you mostlikely have custom error documents. Look in your root folder for the error documents directive (for cpanel) and you might beable to edit it there if you have access to it!
|
|
#13
|
||||
|
||||
|
Quote:
OK... where's my htaccss file? I don't think I have access to that.... Quote:
I do, I can change them, I just want to be able to change what type of document they are.... ![]() |