http-status-code-404

Multiple 301 Redirects after restyling a website (SEO)

We have updated our site recently; the old one had around 300 pages... the new one about 80 ;) This because in the old structure we had, for every argument, many pages. Instead, now we have just one page with a 'summary'. For example, the old structure about the 'car' argument was: Main page, 'cars' sub-page, 'tires' sub-page, 'engin...

PHP 404 error page won't display content

Hi there, I'm having a problem implementing custom 404 error pages on my Windows/IIS/PHP webhost. Whenever I try to send the 404 status message in the header no content is sent to the client and a blank page is displayed instead. Here is a very simple script I'm using: <?php header('HTTP/1.1 404 Not Found'); header('Status: 404 No...

Give user a 404 if querystring is missing?

Say that I require a querystring; for example "itemid". If that querystring is for some reason missing, should I give the user a 200 error page or a "404 Not Found"? I would favour 404 but I'm not really sure. ...

Why do I get a 404 error when I try to access my rails site using https?

My server is currently hosting a php site. This site uses ssl for certain pages already. Now I am transitioning over to rails, and all my new rails apps go into a subfolder. Passenger is setup and and my app works great. One problem, If i try to go to these pages using ssl, I get a 404 error. Apparently apache is looking for the literal ...

WebResource.axd 404 for my SiteMapPath CSS and others.

The site I have runs great on my server and on a virgin 2003 server. But when I go to move the site to the client’s server some of the sites features don’t work. Like the CSS for the SiteMapPath and javascript for the menu. Log from the client’s server: 2009-04-03 17:22:20 W3SVC44836191 XXX.XXX.XXX.XXX GET /WebResource.axd d=nFPK0XLN-y...

Block 404 FavIco error in ELMAh

I noticed out of the box that ELMAH logs a 404 not found for favico on my local server. How do I suppress this error through a filter? I'm not so familiar with configurating it yet.. ...

asp.net routing with web forms--all routs get a 404

Hello I have created a web forms app that implements routing. My applications utilizes Phil Haack's example (http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx). All of my routes receive a 404 error. Any ideas? Thanks ...

Can you have more than one app handle a 404 in Django?

Apparently, the way Django flatpages works is that it handles the 404 thrown by other apps. I was wondering if I could do another flatpages-type app that gets a crack at the 404 before flatpages does. I tried this without success so far. A template gets rendered but the data doesn't come through. Is it even possible? ...

How do I generate a 404 error from an HttpModule?

I have an ASP.NET HttpModule that handles HttpApplication.BeginRequest to redirect some requests to other files. Typically I'll do something like parse the request, write a file to HttpContext.Current.Response.OutputStream then call HttpApplication.CompleteRequest(). For some requests I can't find the relevant file - how do I return a ...

Why is POST data lost when submitting from a Custom 404 page in IIS 6.0?

I built a Custom 404 CMS system in .NET 3.5, and while posting data works locally in IIS 5.1 and 6.0, it does not work on the production IIS 6.0 server. I compared the IIS 6.0 site settings item by item, and they are nearly identical, with the only differences not mattering. I verified that the form is POST-ing to "http://domain/folder...

Custom 404 pages not being able to postback due to relative path issues

My site currently implements custom 404 pages which we have mapped in IIS. So when a user does something like www.mysite.com/foo/bar/doesnotexist, it will execute the 404.aspx URL. This works great, but when inspecting the HTML returned, the form post URL is relative: <form method="post" action="404.aspx?404%3bhttps%3a%2f%2ftestserver...

In Kohana, can you trigger a 404 error?

I have a controller called articles, which creates the articles model which gets the relevant data from the database. I want to, if the method I call returns false, to trigger a 404 error. This is what I have so far. $articleName = $this->uri->segment('articles'); $article = new Articles_Model(); $data = $article->getArticleUsing...

Multiple 404 request on our site. Is it attack or just wrong indexing robot?

Our site is receiving requests which try to access non existing pages. Usually it is only case of misspelled address. Like the right link is /Info/SiteMap.aspx, but the bad request is /Inf/SiteMap.aspx with missing 'o'. There are usually many request, like 20 in row in one minute. All throw 404. Is it problem of some indexing robot? Or ...

How do I create a decent error 404 handler for CodeIgniter?

CodeIgniter has /system/application/errors/error_404.php which is displayed when there is a 404 due to what is effectively a "controller not found" condition. However, for my project, I really need this error to be handled just like it is when a method is missing from the controller class. In that case, I show a normal view with a pretty...

404 Redirect to Sitecore page allows for Extensionless URL

I am using Sitecore as a CMS solution. Recently, we decided to add redirect capability to our website for errors. In Sitecore, I have created two content pages, one to handle Server errors and another to handle 404 errors. I implemented the server error with basic sublayouts without any code behind. On the other hand, the 404 page had a ...

Can I change the error page (404) with a standalone WCF web service?

I have a standalone (non-IIS) WCF service that - besides the services - provides some simple HTML pages via a WebServiceHost. When I enter http://localhost:1234/SomeRandomWords as an URL into the browser I get a default error page that says Dienst Es wurde kein Endpunkt gefunden (Translated to english: Service / Endpoint not found) ...

Catch 404 exception from StaticFileModule in IIS7 integrated pipeline mode

Hi ! Does anyone know if there is a good programatic way (not using the CustomError settings) to catch / handle an 404 error coming from the StaticFileModule in integrated pipeline mode on a IIS7 ? /b ...

URL Routing and IIS6. How can I test it?

I can't seem to understand how I can find out what is erroring out when I implement URL Routing on IIS6 and Webforms. I continue to get 404 errors when I try to access a route. I add the ISAPI module as described here: http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/ SO that way ASP.Net handles all the r...

Having problems with ASP.NET MVC and StructureMap.

Hi folks, I've got StructureMap working fine on my machine. Everything works great ... until I request a resource that doesn't exist. Instead of a 404, i get a 500 error. eg. http://localhost:6969/lkfhklsfhskdfksdf Checking the net, i was told to fix my structuremap controller class. Did that and joy! i now get the -original default 4...

retrieve the hidden default.aspx segment of a url

I tried to display the url using all sorts of methods of HttpRequest, I tried VirtualPathUtility object as well, but I never was able to display the hidden portion "default.aspx" of the default... what is the method or property that retrieves this segment of the url? reason being, I am so close to creating a 404 on application level tha...