Forum Moderators: open

Message Too Old, No Replies

Why 404 shows even when uploaded file in ftp

         

Josh486

6:43 pm on Nov 30, 2007 (gmt 0)

10+ Year Member



I updated a file and then uploaded it back via FTP. I gave the file a new name so that I can first test it before getting it live on the site.

The problem is that a 404 shows in IE for this file. I double checked it and see the file in the ftp. Why would a 404 show?

Thanks for anyone's help.

rocknbil

10:49 pm on Nov 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard Josh,

Case? File.html and file.html are not the same thing.
Cache? If you requested the page when it wasn't there and it gave you a 404, then try to refresh, browsers will sometimes use the cached response instead of looking again. They're lazy that way. Delete your temporary Internet Files and try again.
Wrong directory? Are you sure you uploaded it where you think you uploaded it?
"text file busy?" This is a common problem with scripts. When you upload a file, the system "locks" it. Trying to call a file while this "lock" is effect will cause a script to return a 500, or, in the case of static files, 404. Usually this goes unnoticed but on overloaded servers, or if your connection is really fast, you may not get the file when you know it's there. Least possible of all, but a possibility. In this case you have to wait it out.

Josh486

11:52 pm on Dec 1, 2007 (gmt 0)

10+ Year Member



Thanks rocknbil for your help.

I tried all solutions but it does not help. Maybe it's the name of the file that is causing problems. The original file was/is "/default.asp" . I updated the file and gave it a name "/defaultmaxnew.asp". I don't see why a name can cause problems, but maybe there is.

Thanks,
Josh

rocknbil

12:12 pm on Dec 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to clarify, you didn't add the slash / in the file name did you? Try removing it if you did.

Josh486

1:09 pm on Dec 2, 2007 (gmt 0)

10+ Year Member



No, I did not add the / to the file name.

As I was saving the file (I used windows) it gave me the option of saving in Unicode etc. Can it be that it has to be saved with another type. I have done many files and uploaded it without a problem. This file is however .asp, could it be that at .asp it makes a different in which type it's saved?

Thanks so much for your help.

Josh

surrealillusions

2:56 pm on Dec 10, 2007 (gmt 0)

10+ Year Member



so what url are you trying to look at?

is it on a website?

www.example.com/default.asp is the same as www.example.com if the default index page is default.asp.

If you've renamed it to defaultmaxnew.asp and you're still looking at www.example.com then it will give you a 404 as the default.asp isn't there.

Does that help?

:)