Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Creating Custom Error Pages, For My Domain
Jesse
post Nov 2 2005, 12:42 PM
Post #1


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Hi, I am running my own Domain here on Trap 17. I am wanting to know how I go ago making Custom Error Pages. I know that there is a part in the Cpanel to do this, but that only allows text. I want to add in my site logo etc.

Is there a way I can make the page through Frontpage? If so what do I name the page, for example on a 404 Error. And where would I upload that file to?

Thanking you in advance for your help.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Nov 2 2005, 12:49 PM
Post #2


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



Have you searched and found this link?

http://www.trap17.com/forums/index.php?sho...ndpost&p=191506
Go to the top of the page
 
+Quote Post
Jesse
post Nov 2 2005, 01:01 PM
Post #3


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



QUOTE
For sites hosted on the Linux cluster, you must create a .htaccess file and upload it to your www directory. You will also need to write the custom error pages and upload them to your site.

The .htaccess file is used to override a default setting within the configuration of Apache. The syntax for the .htaccess file is as follows:

ErrorDocument errorcode path-to-page

A working example:
ErrorDocument 404 /custom/404.php


Ok would that be the same with making a .html file ... so I would create a file and call it: .htaccess and put this in it:

ErrorDocument 404 /public_html/404.html

Then I create the Custom 404 Error page and upload that also to the public_html directory. Is that how it would work?
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Nov 2 2005, 01:10 PM
Post #4


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



To recap,
you make a error page called 404.html
you upload it to public_html directory
you open .htaccess file and EDIT in this line
-ErrorDocument 404 404.html (if you upload 404.html in another directory it will be ErrorDocument 404 /directory/404.html)

I wanted to make it clear since I was bit confused with your first sentence. If I am mistaken there will be someone correcting my error(s).
Go to the top of the page
 
+Quote Post
Jesse
post Nov 2 2005, 02:51 PM
Post #5


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Ok I got it now. Thank you so much BuffaloHELP. Thats great smile.gif
Go to the top of the page
 
+Quote Post
Danieluchis
post Nov 2 2005, 09:08 PM
Post #6


Yami no Hime
*********

Group: Members
Posts: 297
Joined: 20-October 04
From: Lalaland
Member No.: 1,849



i got a question:
i got two domains hosted at trap17 (in the same account) but i want to make a custom error page for my other domain, but i can't T_T is this possible to make? i got parked my main domain and in 'add domain' the other i was thinking of making a 404.shtml page for my new domain and then put it in the folder but im wondering if that'll will work...
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Nov 3 2005, 12:46 AM
Post #7


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



Hummm I'm not sure if that's possible. Since there is only one .htaccess file for the host (and not domain determined), both domains will use the same .htaccess file no matter what.

That is something to search for on the internet.
Go to the top of the page
 
+Quote Post
Jesse
post Nov 3 2005, 07:43 AM
Post #8


Premium Member
********

Group: Members
Posts: 175
Joined: 10-September 05
Member No.: 11,692



Ok when I opened my .htaccess file in public_html there was nothing there with 404. So I am still unsure where to place this. I am sorry for asking again, but I just am unsure. With what I can see there is surpost to be already something in that file with at least 404 there and there is nothing. Help please.

Thank you.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Nov 3 2005, 09:36 AM
Post #9


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



As far as I know, you have to add a new line in. So go down to your file and leave a space before you add the line.

The reason it's not there is because when there's an error, your browser knows it as certain error code, i.e. 404, 403 etc, and calls the default error page from your local SYSTEM32 or SYSTEM folder. But by customizing .htaccess file you are redirecting which error file to display.
Go to the top of the page
 
+Quote Post
Jesse
post Nov 3 2005, 11:04 AM
Post #10


Premium Member
**