Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 69
Location: Chuluota, Florida
Trades: 0
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
 
 
Register now for full access!
Old 08-10-2006, 11:15 PM Re: .htaccess file
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
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: 69
Location: Chuluota, Florida
Trades: 0
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
 
Old 08-13-2006, 08:16 PM Re: .htaccess file
Junior Talker

Posts: 3
Name: Rov
Trades: 0
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: 112
Name: Bobby
Trades: 0
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: 69
Location: Chuluota, Florida
Trades: 0
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
 
Old 08-29-2006, 03:20 PM Re: .htaccess file
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
It works fine for me I get the Custom Error page in IE+
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 08-29-2006, 05:46 PM Re: .htaccess file
Defies a Status

Posts: 1,605
Trades: 0
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

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 09:07 PM Re: .htaccess file
Extreme Talker

Posts: 246
Trades: 3
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
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

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
Trades: 0
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'); 
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to .htaccess file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





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



Page generated in 0.31988 seconds with 12 queries