Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-25-2012, 09:48 AM   PM User | #1
skseofleet
New to the CF scene

 
Join Date: Jan 2012
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
skseofleet is an unknown quantity at this point
.htaccess Server Headers Coding?

Hello,

First of all thanks for making me a part of such important forum. I read the post about .htaccess error implementation from javascriptikit.com.

I have a question regarding .htaccess error deceleration. As i read out from the post that if someone want to set a error page for not found then use 404 error code as below in .htaccess file

ErrorDocument 404/errors/notfound.html

Now can any one tell me how a server get know which one page is not found or for which page we used this error code? Are the server found itself the not found page and return the error or what is the procedure? Please clear this concept?
skseofleet is offline   Reply With Quote
Old 01-25-2012, 02:48 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,647
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
I don't understand this question at all. ErrorDocument is tied by the server to respond when a 404 is issued. It intercepts the standard 404 header and instead presents a valid page to the client. If file does not exists = 404 error.
If there is anything that a webhost can do, its determine what its return code is.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Tags
server header codes

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:20 PM.


Advertisement
Log in to turn off these ads.