http-status-code-404

Drupal 6: Anonymously created nodes result in 404

Nodes of this certain types can be created by anonymous or registered users. If a registered user creates it, everything works fine. If an anon creates it, going to that node's page results in a 404 error. The node clearly exists, however. If I edit its entry in the node table and set its uid to be something other than 0, everything wo...

MOSS 404 errors for some users on certain sites, sometimes...

Title says it all. Everything works fine for most accounts 100% of the time but here and there some users who are able to access a subsite fine one day are greeted with a standard 404 the next. This can last for an hour or two days, it's really inconsistent. I check the iis logs and it says the status is also a 404 for these requests, ...

htaccess rewrite causes 500 error instead of 404

I've recently added this little bit of code to my .htaccess RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] Ok, I understand what's happening here, I think. This little bit of code to remove php file extensions causes a loop if the document is not found. This loop causes a 500 ...

ErrorDocument 404 Not Sending Referrer Information: PHP

I'm using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit). $_SERVER['HTTP_REFERER'] is empty I printed out all of my global variables and most contain the link to pageNotFound.php. How can I retrieve thi...

Http 403 or 404 for accessing restricted WEB resource?

My question is rather similar to this Return “correct” error code, or protect privacy?, but I'd like to hear some different answers. We have WEB site most pages of which may be visited by not logged in user. But when not logged in user tries to access resource (Page) that requires authorization (user must have FooRole role), we automati...

Custom Errors not Forwarding on ASP.NET MVC Site

On my site, a broken link throws the default, page not found error. In the web.config I have turned on CustomErrors and forward 404 errors to a custom message. On my dev box it works, on the host it does not. Any ideas? ASP.NET MVC 1.0, SQL 2005, IIS 6 host (ya, I wish it was IIS7 - but they want to charge me to move the site). Thanks...

htaccess 404 error redirection for /cat/sub/.html like urls

Hi friends, How can I redirect such link (below) to 404 error page? http://www.blabla.com/category/sub/.html I generate a SEO friendly links, normally products has url like blabla.com/category/sub/product.html the page doesnt give any error. it just display blank content. I mean i can see static texts like CATEGORY NAME header a...

Django custom handler404 shows 404 but gives header 200

Hi all, I made a custom handler404 for a authenticated Django website to avoid information leakage. def check_logged_in_404(request): """ Custom 404. Show friendly 404 when logged in and redirect to /login when not logged in. """ if request.user.is_authenticated(): return render_to_response('404.html') else...

Custom error 404 - bypassed in specific case

I have a question regarding HTTP 404 error handling by IIS. I know that this is a subject discussed very much but still i cannot find the answer. I have my custom page NotFound404.aspx and works just fine. On page not found the my url is */NotFound404.aspx?aspxerrorpath=/index_fake.aspx* My question is: what happens if i edit this URL ...

Fileextension problems with classic asp

Hi, I am running a classic ASP website where my online users can attach files to the internal message system. But whenever they upload an attachment with more then 3 characters in the fil extension, the server gives me a 404? Files like mypicture.jpg works fine, but files like mydocument.docx doesn't work? Any suggestions? Best regar...

Migrating from Drupal to Rails - Routing

I've developed a new Ruby on Rails site for my organization. I want the new Rails site to intercept incoming requests that were meant for the old site and display a message for the user indicating that the new site is launched, a link the new URL they were most likely trying to get to, and a reminder to update bookmarks. So I'm prett...

HttpWebResponse returns 404 error

Hi, How to let Httpwebresponse ignore the 404 error and continue with it? It's easier than looking for exceptions in input as it is very rare when this happens. ...

Get all 404s to work on IIS6

I've followed advice on how to setup 404s by: http://www.andornot.com/about/developerblog/archive/2009%5F10%5F01%5Farchive.aspx and related: http://stackoverflow.com/questions/667053/best-way-to-implement-a-404-in-asp-net From Global.asax: protected void Application_Error(Object sender, EventArgs e) { Exception exception = Se...

ASP.NET - URL Redirection Issue

I have developed a site using ASP.NET 3.5, located within a virtual directory that is on a server running on IIS v5.1. Just this afternoon as I was fixing something on the development site, I started getting a 404 error ("The resource cannot be found") after clicking on one of the links within an ASP.NET Menu control. I know why I'm ge...

WordPress 404 Errors

I moved a Wordpress website from one server to another and I am now getting 404 errors on everything but the home page. I also checked that the .htaccess file is there and the database contents. They are fine. Not sure what else could be causing this. Any ideas from the community? ...

ASP.NET showing 404 for some .aspx files even though they exist

I just redeployed one of my sites today and suddenly some (but not all) of my .aspx files are redirecting to my 404 handler. I've scrutinized the security settings on the offending files, comparing them line-by-line with other .aspx files that are serving correctly, with no luck. The files 404'ing files were indeed ones I had been work...

Replacing Broken External Images With Custom Image

I'm looping through an array of URL strings of images hosted at an external site. It looks something like this: def get_image_urls image_url_array.each do |image_url| puts image_tag image_url end end Which will return the URLs of images hosted on the external site. The problem is, some of these images might be broken (404). S...

urllib2.urlopen() vs urllib.urlopen() - urllib2 throws 404 while urllib works! WHY?

import urllib print urllib.urlopen('http://www.reefgeek.com/equipment/Controllers_&_Monitors/Neptune_Systems_AquaController/Apex_Controller_&_Accessories/').read() The above script works and returns the expected results while: import urllib2 print urllib2.urlopen('http://www.reefgeek.com/equipment/Controllers_&_Monitors/...

Why would I have to restart rails every time to test a 404.html page here?

Hi there, I'm trying to work out why when working on a 404 page on a rails app I'm working, the only way to see changes I've made to the html on the page is to physically restart the webserver with a ctrl-C followed by a call to script/server. As far as I can tell, I can't see anything particularly wrong with the development.rb config ...

Extensionless URLs with Parameters, what about 404s?

I'm creating a new url infrastructure for my sites, and came across this problem: If I have an extensionless URL like this "/Products/Beverages/Minty-chocolate-drink/Distributors", I can't distinguish parameters from pages... I can find out which page was called by finding the longest match in my pages and treat the rest as parameters, ...