Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

A web server will return a status code of 404 when the resource that is being requested does not exist or cannot be found.

385 questions
0
votes
1 answer

Files created by java API cannot be accessed through JSP

In a web application, I will use both java API and Linux System Calls to create a new directory, copy an image inside it and finally create a XML file with outputWriter. Then I will create download links to these resources on a JSP page. So far…
mdoust
  • 113
  • 1
  • 5
0
votes
1 answer

existing file gives 404 due to a RewriteCond rule in .htaccess

To redirect a specific domain name to a folder in my public dir, www/, I edited .htaccess to the following: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)?domain.com$ RewriteRule ^(/)?$ domain.com/$1 [L] Pointing my browser to http://domain.com…
0
votes
2 answers

Nginx + PHP-FPM executes script, but returns 404

I am using Nginx + PHP-FPM to run a Wordpress based site. I have a URL that should return dynamically generated JSON data for use with the DataTables jQuery plugin. The data is returned properly, but with a return code of 404. I think this is a…
MorfiusX
  • 39
  • 1
  • 5
0
votes
1 answer

Preserving URLs after CMS migration with redirect database and apache http?

We will migrate an entire intranet from one CMS to another. All URLs will change in a non-predictable pattern, but I can capture a file with original,new URLs I can feed into anything. I have hundred thousands of URLs, not just a few hundred. What I…
stwissel
  • 640
  • 2
  • 7
  • 21
0
votes
1 answer

Classic ASP start page not found (404) in IIS 7 on Windows Server 2008 R2

My site/application points to a folder called "site" with all permissions set up. In that folder resides "home.asp". Default document is "home.asp". When I go to the domain, I get a "page not found". If I capture that 404 error in IIS and tell it…
ScotterMonkey
  • 103
  • 1
  • 5
0
votes
1 answer

How to redirect a 404 to https in nginx?

For some reason a Redmine installation keeps redirecting some https requests to http. I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone to. What is the syntax for that. I am trying this…
vfclists
  • 1,562
  • 5
  • 20
  • 36
0
votes
1 answer

Use shared 404 page for virtual hosts in Nginx

I'd like to have a shared 404 page to use across my virtual hosts. The following is my setup. Two sites, each with their own config file in /sites-available/ and /sites-enabled/ www.foo.com bar.foo.com The www directory is set up…
Choy
  • 169
  • 2
  • 9
0
votes
1 answer

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 circumstances but I don't want the referring URL to be…
Knocks X
  • 189
  • 1
  • 2
  • 8
0
votes
1 answer

Webmaster randomly reporting a massive increase in 404s (apparently from old sitemaps)

Well, I'm stumped. Several months back, we launched a totally new website, replacing a legacy system that was pretty messy. Part of the mess was many, many pages created that really didn't need to be there or be crawled by Google. There was a lot of…
0
votes
1 answer

Multiple DNS A record for one machine

I saw this post but it doesn't really address my situation. I am trying to add a second Address record for the same IP address but for some reason I am constantly getting a 404 bounce from dsnextgen.com?? Is it possible to set more then one Address…
0
votes
2 answers

Apache 404 Error While PHP File Exists

I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory and PHP file have no script errors. My .htaccess…
charles
  • 1
  • 1
  • 1
0
votes
2 answers

Configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses

I'd like to know how to configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses. I assume there is a directive to add to httpd.conf, but not sure what it is. Most of the tutorials I see for…
0
votes
2 answers

How to reverse this Nginx rewrite rule?

I've been having trouble getting Nginx rewrites to work. On Apache I had the following rewrite, which directed all requests that did not request a PHP file to index.php: Options +FollowSymLinks RewriteEngine on RewriteRule !^(.*)\.php$ ./index.php…
0
votes
1 answer

Redirect www.mysite.com/XYZ_404err_variety to www.mysite.com, how?

I get 404 errs with tangling urls such as www.mysite.com/XYZ_404err_variety, I want to redirect everything like that to www.mysite.com/, how? I am using *ix -server on apahce. I tried this one but it messed up my configurations for some…
user10608
0
votes
1 answer

Can the re-occurring of 404 error lead to Internal server error (500)?

I'm wondering can the re-occurring of File Not Found (404) error eventually lead to Internal server error (500)?
2hamed
  • 469
  • 1
  • 5
  • 23