Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
koberulz is on a distinguished road
 
Posts: 25
Join Date: Sep 2010
Default 404 Error On Page That Exists - 09-28-2010, 06:33 PM

http://koberulz.webege.com

Under 'Site Updates', I've linked to a page that details the recent updates I made to the site. However, clicking on that link generates a 404 error. The page in question does, however, exist. Linking to other pages with that same link works fine, but as soon as I link it back to the site updates page it returns the same 404 error.

The same thing happened last night, with the preceding site update - the "It's My Body" blog. This page worked fine initially. I updated it, opened the new page, and generated a short link at bit.ly. I then updated the index page with the link under "Site Updates", and got a 404 error, which was also returned by the bit.ly link and the link in my blog's index page, which hadn't been changed. Again, I confirmed that the page was exactly where the link said it should be. Renaming it from 09212010My_Body.php to 09212010Its_My_Body.php and altering the link fixed the issue.

Why are my pages returning false 404 errors, and how do I fix this?
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 09-30-2010, 02:32 AM

Hi,

You're also using authentication, and it's possible the "odd" 404's are related to an issue in your auths or htaccess setup.

drums
Reply With Quote
(#3 (permalink))
Old
Junior Member
koberulz is on a distinguished road
 
Posts: 25
Join Date: Sep 2010
Default 09-30-2010, 05:55 AM

What sort of an issue? As I recall, though, it started before I'd set up .htaccess to do anything more than my custom 404 page. It happened around the time I created print versions in the CSS file. They're the only changes I'd made from a site that was working absolutely fine. I've since password-protected my drafts, added a JavaScript print button and prevented viewing of directories, though I'm not sure how any of that could be the problem.

EDIT: Okay then. It appears I've password-protected the entire site. What've I done wrong?
Reply With Quote
(#4 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 09-30-2010, 07:48 AM

Hi koberulz,

It looks like all your sub directories are set to authorise, because it's still displaying anything from your root directory, but I can't load your CSS files, etc, which are all in subdirs.

drums
Reply With Quote
(#5 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 09-30-2010, 09:26 AM

PS: Collingwood will win!
Reply With Quote
(#6 (permalink))
Old
Junior Member
koberulz is on a distinguished road
 
Posts: 25
Join Date: Sep 2010
Default 09-30-2010, 10:29 AM

I quite specifically password-protected the CSS files. It'll let me get anywhere in Firefox, because I logged in there and it doesn't make me re-enter anything, but I tried opening my site in IE just now and the index page wanted a password, so I'm not sure how you're accessing my root directory.

Here's what I've got in .htaccess:
Quote:
ErrorDocument 404 /Errors/404notfound.php
ErrorDocument 403 /Errors/403forbidden.php
ErrorDocument 401 /Errors/401authreqd.php

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]

<Files .htaccess>
order allow,deny
deny from all
</Files>

Options -Indexes
I've also got .htaccess files in my Blog folder to password-protect my drafts, and in my Comments, CSS, Scripts, and SpryAssets folders to password-protect everything within those subfolders. Anywhere I've done something horribly wrong?

I still, however, don't see what this, an issue though it is, has to do with the initial issue which became a problem when all .htaccess was doing was using my custom 404 page.
Reply With Quote
(#7 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 10-01-2010, 01:56 AM

Hi koberulz,

It's asking me for the password, but I'm hitting cancel, and then it gives me your html file from the root directory (because there's no auth required).

I know this feels like it's straying from the original request a little, however, even your ErrorDocs require authentication because of the CSS auth requirements, so I can't help but feel there is some relationship between the two, or at the very least, it's making finding the root cause more difficult.

drums
Reply With Quote
(#8 (permalink))
Old
Junior Member
koberulz is on a distinguished road
 
Posts: 25
Join Date: Sep 2010
Default 10-01-2010, 03:34 AM

Weird. When I hit cancel, the password required box just pops up again. I deleted the .htaccess file in the CSS folder, and it's now working, as is the page that was initially incorrectly producing the 404 error, despite me having touched nothing.

Last edited by koberulz; 10-01-2010 at 03:40 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com