17 Replies - 702 Views - Last Post: 24 June 2011 - 07:25 PM
#1
404 Error Website Problem
Posted 22 June 2011 - 11:12 PM
Daphne
Replies To: 404 Error Website Problem
#2
Re: 404 Error Website Problem
Posted 23 June 2011 - 05:55 AM
If you have access to php on your host, I would recommend looking into the php "include" function. It is very useful for things such as navigations.
Back to the 404 error, what pages are you encountering this problem with?
#3
Re: 404 Error Website Problem
Posted 23 June 2011 - 06:04 AM
#4
Re: 404 Error Website Problem
Posted 23 June 2011 - 06:58 AM
#5
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:04 AM
codeprada, on 23 June 2011 - 06:04 AM, said:
I just fixed the 404 error problem two hours ago. It turned out that my file name says "Wedding.html" and the coding says "wedding.html". Ever since I changed the file name to "wedding.html", the error message is gone. However, I still can't seem to find out why the images don't show up.
#6
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:11 AM
Slice, on 23 June 2011 - 05:55 AM, said:
If you have access to php on your host, I would recommend looking into the php "include" function. It is very useful for things such as navigations.
Back to the 404 error, what pages are you encountering this problem with?
I changed "babies" to "newborns" a few days ago. I thought maybe it had caused this problem. Therefore, I changed "newborns" back to "babies" just to see if it makes a difference. It doesn't seem like it does. I will change them back, but thanks for noticing the inconsistency.
#7
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:19 AM
d312kimo, on 23 June 2011 - 02:04 PM, said:
That would be because your image URLs are wrong.
If you look at the XML files you are feeding the Flash movie, like this one for example, you will see a list of URLs. However if you follow the URLs, you just get a 404 error. Not one image I've tested works.
Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.
#8
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:25 AM
Atli, on 23 June 2011 - 07:19 AM, said:
d312kimo, on 23 June 2011 - 02:04 PM, said:
That would be because your image URLs are wrong.
If you look at the XML files you are feeding the Flash movie, like this one for example, you will see a list of URLs. However if you follow the URLs, you just get a 404 error. Not one image I've tested works.
Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.
How do I fix these links?
#9
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:48 AM
For example, if your main HTML file is stored at:
/home/dap/www/index.html
And your images at:
/home/dap/www/Simpleviewer/images/
Then your image URLs should look like:
/Simpleviewer/images/ImageName.jpg
I can't be more specific that that because I don't know where your files are.
#10
Re: 404 Error Website Problem
Posted 23 June 2011 - 02:45 PM
Atli, on 23 June 2011 - 07:48 AM, said:
For example, if your main HTML file is stored at:
/home/dap/www/index.html
And your images at:
/home/dap/www/Simpleviewer/images/
Then your image URLs should look like:
/Simpleviewer/images/ImageName.jpg
I can't be more specific that that because I don't know where your files are.
Thanks! I thought it was set up correctly, but I could be wrong. I will check it when I go home in a few hours. Thanks!
#11
Re: 404 Error Website Problem
Posted 23 June 2011 - 02:55 PM
Where exactly are the images in relation to the index file? Keep in mind that on Unix servers, file paths are case-sensitive. On Windows, however, they are not. - A very common problem when building websites on Windows but deploying them on Linux.
[/quote]
Hi Atli,
I am not sure if this helps, but below is how I save my files.
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image
The way the codes are set up is following the way I save my images. I just don’t understand why the images aren’t linking.
Daphne
#12
Re: 404 Error Website Problem
Posted 23 June 2011 - 07:10 PM
d312kimo, on 23 June 2011 - 09:55 PM, said:
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image
Ok, for future reference, if you want to post pre-formatted text (with tabs and such visible) use [code] tags. Took me ages to figure out you meant those last 5 to be indented!
As it turns out, it looks like your host is running Windows, so the case-sensitivity is a non issue for you (for now). Still, if you code this way you are likely to get into trouble later on.
But that simply leaves you with non existing files. None of the links in your XML files works, and none of the folders you point to seem to either. For instance, this is one of the links from your Weddings XML file:
simpleviewer/images/weddings/Edmonton_Wedding_Photography01.jpg
But no matter how I alter this, it links to nothing.
Original,
With "Simpleviewer" removed,
Inside a "Weddings" subdir,
etc...
Are you absolutely sure the above hierarchy is correct? Have you verified this to be true on your server? How are you connecting to the server, by the way? FTP?
As far as I can see, your files are simply not there. That's why your links are failing.
This post has been edited by Atli: 23 June 2011 - 07:11 PM
#13
Re: 404 Error Website Problem
Posted 24 June 2011 - 07:32 AM
Atli, on 23 June 2011 - 07:10 PM, said:
d312kimo, on 23 June 2011 - 09:55 PM, said:
Website Folder
-index.html
-wedding.html
-simpleviewer (folder)
Images (folder)
Wedding (folder)
Images
Thumb (folder)
Thumb image
Ok, for future reference, if you want to post pre-formatted text (with tabs and such visible) use [code] tags. Took me ages to figure out you meant those last 5 to be indented!
As it turns out, it looks like your host is running Windows, so the case-sensitivity is a non issue for you (for now). Still, if you code this way you are likely to get into trouble later on.
But that simply leaves you with non existing files. None of the links in your XML files works, and none of the folders you point to seem to either. For instance, this is one of the links from your Weddings XML file:
simpleviewer/images/weddings/Edmonton_Wedding_Photography01.jpg
But no matter how I alter this, it links to nothing.
Original,
With "Simpleviewer" removed,
Inside a "Weddings" subdir,
etc...
Are you absolutely sure the above hierarchy is correct? Have you verified this to be true on your server? How are you connecting to the server, by the way? FTP?
As far as I can see, your files are simply not there. That's why your links are failing.
I renamed my "Wedding" folder to "wedding" and it seemed to solved some of the problems. As you can see, so of the photos are showing on my website now. However, photos in the 'couples' link as well as some of the photos in the 'weddings' link still aren't showing.
Can I have a space in the file name? For example: wedding (1).html
A lot of the photos that don't show up are saved with this kind of file name.
#14
Re: 404 Error Website Problem
Posted 24 June 2011 - 07:51 AM
This is a broken link from your couples XML file:
simpleviewer/images/couples/edmontonengagementphotographer01.jpg
But when I capitalize the words in the file name, like so, the link works:
simpleviewer/images/couples/EdmontonEngagementPhotographer01.jpg
What kind of server are you running this on? Windows doesn't support case-sensitive file or folder names, so it's a little odd that it would require file names to be case-sensitive, but not folder names.
Moral of the story: Never mix the case of your files and folders. If you save the file as Folder/FileName.jpg don't try to request it as folder/filename.jpg. Windows won't see the difference, but it gets all messed up when you try to put it online.
#15
Re: 404 Error Website Problem
Posted 24 June 2011 - 08:00 AM
Atli, on 24 June 2011 - 07:51 AM, said:
This is a broken link from your couples XML file:
simpleviewer/images/couples/edmontonengagementphotographer01.jpg
But when I capitalize the words in the file name, like so, the link works:
simpleviewer/images/couples/EdmontonEngagementPhotographer01.jpg
What kind of server are you running this on? Windows doesn't support case-sensitive file or folder names, so it's a little odd that it would require file names to be case-sensitive, but not folder names.
Moral of the story: Never mix the case of your files and folders. If you save the file as Folder/FileName.jpg don't try to request it as folder/filename.jpg. Windows won't see the difference, but it gets all messed up when you try to put it online.
It is odd. I also renamed all the files to "EdmontonEngagementPhotographer" last night, but the photos still don't show in the 'couples' link. Maybe I need to upload the html file again.
|
|

New Topic/Question
Reply


MultiQuote





|