DreamHost Web Hosting
Discussion Forum


Forums
   >> Web Design
*Threaded Mode

Subject Insufferably Dumb Question About Links  
Posted bydthomasmaddox (DH Dreamling)
Posted on08/04/06 07:29 PM



If we domain is www.example.com, and I upload newfile.com to the site, and I can create a link to it in http://www.example.com/index.htm, then why *can't* I link to it *as*

http://www.example.com/newfile.com?

Which just gives me a 404 message?

Thanks,

Tom the Clueless

Edited by dthomasmaddox on 08/04/06 07:57 PM (server time).



Subject Re: Insufferably Dumb Question About Links new [re: dthomasmaddox]  
Posted byAtropos7 (DH DreamNinja)
Posted on08/04/06 08:39 PM



Wait a minute, you upload a file, you link to it in a document, and you get a 404 error message?

First of all: directory and filenames are case-sensitive. http://example.com/filename and http://example.com/FILENAME are two different files!

Yeah, its kinda of a dumb question because 404 means not found. That means the file is not where the link points to! If I told you I parked my car out front and you told me you can't find it when you look for it there, then obviously I don't know where my car really is and have no business telling people where to find it ;)

So double check that you're uploading the file to the right directory. And make sure you are logged in as the FTP/shell user assigned to the domain.



If you're still getting an error, its possible the funny business is due to the filename and/or run-time configuration directives in an .htaccess file. Do you have an .htaccess file with directives you don't fully understand? To be specific, its possible a rewrite rule is to blame.

And you might be able to determine where Apache is actually looking for the file by checking the error.log file in your logs directory.


Atropos | openvein.org


Subject Re: Insufferably Dumb Question About Links new [re: dthomasmaddox]  
Posted bysilkrooster (DH Smarty Pants)
Posted on08/04/06 09:07 PM



This is incorrect: http://www.example.com/newfile.com?
Check the extention of the file you are pointing to if it is a web page then odds are the extention is .htm, .html, or .php These three are the most popular, even though it could easily be .txt
.com may be used after a domain name meaning commercial, but .com after a file means executable. If you had a .com file a download box would have pop up asking the veiwer if it is ok to download that file.
Silk



Subject Re: Insufferably Dumb Question About Links new [re: Atropos7]  
Posted bydthomasmaddox (DH Dreamling)
Posted on08/05/06 09:27 AM



It was a case-sensitive filename issue. I had no idea that they were.

I told you it was dumb.

Thanks to everyone who responded.

Tom



Subject Re: Insufferably Dumb Question About Links new [re: dthomasmaddox]  
Posted bydtobias (DH Smarty Pants)
Posted on08/27/06 08:31 AM



But is your file actually named "newfile.com"? What is it, an old MS-DOS executable command file?

-- Dan



*Threaded Mode
Jump to