Forum Moderators: phranque

Message Too Old, No Replies

folder broken link

404 error

         

fbadyari

5:00 am on Nov 16, 2010 (gmt 0)

10+ Year Member



I am a new web designer, i have recently uploaded my 1st website.
i use note pad to develop my website & use div tag to creat the site.
To promote the seo on my site, i have placed every single page in the folders with its css & images & i have checked the links manually . All the links are working fine. When i check the links on the w3 link checker, it almost shows all the links broken.

my website url pages are as below

htt://www.mywebsite/folder_folder/folder_folder.html

if checked manually the page opens fast without any problem.
The links for the other pages have been placed in span tag as below

<span class="contact"><a href="htt://www.mywebsite/folder_folder/folder_folder.html">Contact us</a></span>


The same pages broken link shown on w3 link checker as

htt://www.mywebsite/folder_folder%5Cfolder_folder.html

Status: 404 Not Found
The link is broken. Double-check that you have not made any typo, or mistake in copy-pasting. If the link points to a resource that no longer exists, you may want to remove or fix the link.


where does the problem lie.

wilderness

5:19 am on Nov 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the ascii code for "%5C" is a back-slash \, which you've apparently typed in error.

Easy thing to overlook when looking at syntax.

jdMorgan

2:52 pm on Nov 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, all slashes in "paths" used in URLs must be "/" forward slashes, regardless of whether the server's OS is Windows or *nix. The Apache server itself will take care of converting these slashes if it is installed on a Windows machine, so you *must not* specify "\" characters in URLs.

In fact, backslashes are not acceptable in HTTP URLs, and must be encoded to comply with the HTTP/1.1 URL requirements specification [faqs.org] -- which is why you are seeing the "%5c" entities in your URLs as reported by W3C.

Sine you are just getting started, be aware that URLs and filepaths are completely-different things. URLs are used "out there on the Web" and filepaths are used "here, inside the server." The basic function of a Web server is to translate HTTP URLs to the filepaths needed to generate and/or serve content from the resources located in the server's filesystem; The fundamental purpose of HTTP server's is to make it unnecessary for Web clients to known anything about the server, its operating system, or its filesystem organization. URLs are therefore "universal" names for resources, and need not change due to any filesystem changes.

Jim

fbadyari

7:56 am on Nov 19, 2010 (gmt 0)

10+ Year Member



Thanks to you both, Wilderness & JDmorgan. it was truly helpful.
Thanks again