Reply
.htaccess file
Old 08-09-2006, 03:10 PM .htaccess file
Joe Hussar's Avatar
Skilled Talker

Posts: 68
Location: Chuluota, Florida
Hello............

I hope this is the correct forum for my question.

I have a .htaccess file in my web site root directory, that (in addition to other tasks) is supposed to direct anyone who mistypes a page url, to a special page (called 404errorpage.htm - also located in my root directory). This is to avoid them getting a standard "HTTP 404 Page cannot be found" message.

The file seems to work with no problem, except when "I" mistype an address I never get the 404errorpage.htm (when using IE or aol)

However everyone else does!

So if you type in http://www.candylandcrafts.com/what

you will get my 404 error page. When I do it from my computer I only get the HTTP 404 Page can't be found" message.

I have cleared out all my cookies, but I still never get the redirect to 404errorpage.htm

Any idea what is different on my computer? I only have the problem with IE and aol. But with Firefox and Netscape I get the correct page (404errorpage.htm).


Joe Hussar
candywebster@aol.com
__________________
Joe Hussar
http://www.candylandcrafts.com/
Joe Hussar is offline
Reply With Quote
View Public Profile Visit Joe Hussar's homepage!
 
When You Register, These Ads Go Away!
Old 08-10-2006, 11:15 PM Re: .htaccess file
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,339
Name: Keith Marshall
Location: West Hartford, CT
Check to make sure that IE is not working "Offline" - Also force a refresh (if using Windows) by pressing Shift + F5
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 08-11-2006, 08:12 AM Re: .htaccess file
Joe Hussar's Avatar
Skilled Talker

Posts: 68
Location: Chuluota, Florida
Hi...

Thanks for suggestions.......... checked/tried both............

I'm not working off line and refreshing won't do it either.
__________________
Joe Hussar
http://www.candylandcrafts.com/
Joe Hussar is offline
Reply With Quote
View Public Profile Visit Joe Hussar's homepage!
 
Old 08-13-2006, 08:16 PM Re: .htaccess file
Junior Talker

Posts: 3
Name: Rov
it works ok... in IE and Firefox ... even with french IP... !
rovshan is offline
Reply With Quote
View Public Profile
 
Old 08-15-2006, 04:11 PM Re: .htaccess file
b0881's Avatar
Super Talker

Posts: 104
Name: Bobby
I get 'Page cannot be found'.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 08-16-2006, 05:20 PM Re: .htaccess file
Joe Hussar's Avatar
Skilled Talker

Posts: 68
Location: Chuluota, Florida
Hi.........

Bobby: You're the 1st person I've talked to that has the same problem as I do. Everyone else (so far) reports that a mistyped URL in IE will return the "custom" error page.

It must depend somehow on the way we have our IE set up. ...............

Life is mysterious..................

Thanks.

Joe
__________________
Joe Hussar
http://www.candylandcrafts.com/
Joe Hussar is offline
Reply With Quote
View Public Profile Visit Joe Hussar's homepage!
 
Old 08-29-2006, 03:20 PM Re: .htaccess file
kIDJOE's Avatar
Extreme Talker

Posts: 180
Location: Hollywood, CA
It works fine for me I get the Custom Error page in IE+
kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 08-29-2006, 05:46 PM Re: .htaccess file
King Spam Talker

Posts: 1,125
It worked fine for me. I got the custom page.

You said you had deleted all your cookies. Did you clear all you temp files also?

I also read somewhere, yesterday, that sometimes it is because your ISP caches files that this problem occurs.

Here is the correct sytax for the custom 404 if you want to take a look at your .htaccess file.

Quote:
For the .htaccess ErrorDocument command, you first specify the type of error you are defining (in this case the 404), then you give the local URL (not the full URL) of the error page:

ErrorDocument 404 /my-404-error-page.html
I choose to make that the first line of my .htaccess file. It worked immediately so I doubt it is your temp files causing the problem.
colbyt is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 09:07 PM Re: .htaccess file
Extreme Talker

Posts: 197
You don't have a line in your hosts file that points you back to your local IP, do you?
CouponGuy is offline
Reply With Quote
View Public Profile
 
Old 08-30-2006, 07:13 AM Re: .htaccess file
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
My htaccess error handling

ErrorDocument 400 /errors/?mode=badrequest
ErrorDocument 401 /errors/?mode=authreqd
ErrorDocument 403 /errors/?mode=forbid
ErrorDocument 404 /errors/?mode=notfound
ErrorDocument 500 /errors/?mode=serverr

Also the 1st overloading done in my sitewide htaccess.

You must be having issues with IE.

ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 09-05-2006, 12:57 PM Re: .htaccess file
Rufo's Avatar
Extreme Talker

Posts: 173
This is probably not a caching issue.

Some ISPs automatically remove content from responses with status codes outside the 2xx range (presumably to save bandwidth).
You may be able to solve this problem by sending your error pages with a 200 (OK) status code:

Perl:
Code:
print "Status: 200 OK\r\n";
print "Content-type: text/html\r\n\r\n";
PHP:
PHP Code:
header('Status: 200 OK'); 
__________________
mp3blog.us
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to .htaccess file
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17603 seconds with 12 queries