http-status-code-404

Django: problem with Javascipt. Getting 302 and 404 error

I am trying to run WMDEditor in my Django site. I have installed WMD files in a directory called /static/js/wmd.wmd.js of the root of my website. However when the page get served I get: INFO 2009-09-08 11:00:48,217 dev_appserver.py:3034] "GET /static/js/wmd/wmd. js HTTP/1.1" 302 - INFO 2009-09-08 11:00:48,733 dev_appserver.py:3...

Show no_picture.png by .htaccess if picture is not exist.

Hi, I want to show no_picture.png if requested picture does not exists. I should do it with .htaccess. Thanks a lot. ...

Upgraded a site from PHP to rails. What about missing old pages redirected from google?

Hi, I created a rails app for my client. It was PHP and I totally rebuild it from the scratch with rails. The problem is that the site is old and many old pages are ranked in google. Naturally many people will click the page link in google and the page won't be available. How do you usually handle such a problem? I need to redirect su...

How to have a specific 404 for a folder using ASP.NET ?

This is a bit tricky and I'd be glad if you guys could give me some pointers on this one. Here is what I want to do: A user tries to access myapp.com/data/123456.mp3 test.mp3 doesn't exist The system sends the user to myapp.com/data/error.apsx?file=123456.mp3 I need this in order to handle the way a large system is supposed to serve ...

Server configured to send 404 to requests from cURL? (PHP)

Hi I am doing some automation for a client and was planning on running some php scripts via cURL in the process. However URLs that work fine in a browser are coming up 404 when hit by cURL. I have seen mention elsewhere that some servers are configured to block cURL in this manner. Is this a setting I could edit in httpd.conf? Doesn...

How can send back my own 404 error message in ASP.NET , but as json?

Hi folks, i'm trying to send back a simple error message as Json, with the HTTP code as 404. So i started out writing my own IExceptionFilter that checks to see the exception. To keep this simple, if the exception throw is of type ResourceNotFoundException then i set the code to 404. Otherwise everything else if 500. Now, the problem ...

How can I return a 404/50x status code from a Grails Controller?

I have a controller that needs to return a 404 page and status code on certain conditions. I can't seem to find out how to do this in Grails. A coworker recommended this method: response.sendError(HttpServletResponse.SC_NOT_FOUND) which works perfectly fine, but it's not very Grails-like. I know Rails' render method take a status argu...

Getting a Magento 404 error when accessing the module settings through admin panel

So I downloaded the Magento free blog extension but it only supports a single blog. So I duplicated the extension as I need more than one blog in my magento store. I changed all the references and calls appropriately in my extension copy and was able to install it as a separate extension. However when I want to create a new post from t...

Significance of 'pagerror.gif'?

I'm getting strange hits to a non-existant file on my site called 'pagerror.gif'. From some basic Googling it appears to be a file that Internet Explorer looks for in certain situations. Can anyone verify that, and perhaps provide some additional information about when IE would look for that file? ...

HttpModule for Error Handling and Missing Images

I have an HttpModule that I have put together from cobbling a couple of different sources online together into something that (mostly) works with both traditional ASP.NET applications, as well as ASP.NET MVC applications. The largest part of this comes from the kigg project on CodePlex. My problem is in dealing with 404 errors due to a...

Basic Rails 404 Error Page

I have been looking for a simple answer to this for a ridiculously long time and it seems like this has to be so plainly obvious and simple because no one has an easy, idiot proof tutorial. Anyway, all I want to do is to have a single 404.html static page that loads whenever ANY error is thrown. Ideally this should only happen in produ...

rails: 404.html is not rendered in IE

Hi, I have an rails app which redirects wrong urls to "/". I made 404.html file and it has the following code. <script type="text/javascript"> <!-- window.location = "http://www.mydomain.com/" //--> </script> It works well in Firefox but IE doesn't redirect. IE draws its own "The webpage cannot be found." page. I checked log ...

Tomcat and JMeter generating HTTP 404 errors

Hello Perhaps someone can help me with this: I'm a complete novice with JMeter but I'm trying to use it to connect to a web application deployed in Tomcat to simulate a small number of users logging in and browsing a page. But when I run the test plan, all I seems to get in the JMeter log is a a series of HTTP 404 messages indicating t...

Tomcat virtual host config not working for Struts actions

Hello, Initially I had a webapp called "admin" running fine, deployed inside the $CATALINA_HOME/webapps/ directory of tomcat 6. Now I tried setting up a vitual host to run this webapp. Step1: I added the following in $CATALINA_HOME/conf/server.xml <Host name="mysubdomain.domain.com" appBase="keshav"> </Host> Step2: I created a fol...

Is there a way to force apache to return 404 instead of 403?

Is there a way how I can configure the Apache web server to return a 404 (not found) error code instead of 403 (forbidden) for some specific directories which I want to disallow to be accessed? I found some solutions suggesting the use of mod_rewrite, like e.g. RewriteEngine On RewriteRule ^.*$ /404 [L] As the purpose of sending 404 ...

Symfony: adding new action/view error. (Newb question)

I'm getting a 404 when trying to add a new module page. I'm apparently missing something fundamental here, being a newbie to Symfony. Can anyone point out what it is I'm missing? Many thanks. modules/admin/actions/actions.class.php /* following executeIndex() */ public function executeSchedule() { if ($this->getRequest()->getet...

Exclusive url-patterns in Tomcat web.xml descriptor

I am trying to redirect erroneous page requests - 404 errors - to a custom error page. In order for my servlet, instead of the root servlet, to handle these requests, I entered the following url-pattern: <url-pattern>/</url-pattern> Unfortunately, this also catches embedded requests for files like *.js, *.css, *.png, *.jpg, and other...

Let apache handle 404 error when deemed appropriate by PHP?

I perfectly know how to create a custom 404 page in PHP, however I'm wondering if there's a way to give back control to to apache and let it produce the proper 404 page, sending right headers, etc. when my logic says so? I'm looking at some apache specific functions but can't seem to find anything appropriate. Is that really just not po...

Custom 404 with EPiServer CMS5 on IIS 6

I have been trying to set up a custom 404 page for several days now but still haven't succeeded. The target system is EPiServer CMS 5 running on Windows 2003. My development system is EPiServer CMS 5 running on Windows Vista. this means I can only debug on a different version of IIS. Anyway: The problem is that the custom 404 is displa...

Django, from php to Django

I have a website done with Django, that was previously done with PHP and CodeIgniter. I've moved the website to Webfaction, changed the DNS and all other configurations, but now my email is full of errors like this: Error (EXTERNAL IP): /index.php/main/leer/7497 I don't know why the Django app is looking for pages from the PHP app, sp...