Editing
404 Not Found
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 修正網址可能的錯誤 == === 網頁使用中文檔名 === 若無法下載中文檔名之檔案,請設定Internet Explorer 瀏覽器 > [工具] >[Internet選項] > [進階] > [瀏覽] > [永遠以UTF-8傳送] 之選項為"否"。 === 檔名或資料夾的大小寫問題 === 由於Windows作業系統預設'''不區分資料夾與檔案名稱的大小寫''',但是上傳到的網頁伺服器常是Linux like的作業系統,卻會'''區分大小寫'''。例如: 網頁嵌入的圖檔檔名是 photo.jpg ,但是實際上傳到網頁伺服器的檔名是 photo.JPG ,導致無法顯示圖檔。解決方式是網頁嵌入的圖檔檔名的大小寫,需要與實際上傳的檔名大小寫一致。 === 將網址直接當作關鍵字 === 例如 <nowiki>http://jonrohan.github.com/ZeroClipboard/</nowiki> 連過去是 404 ,將網址直接當作關鍵字,用 Google 搜尋,發現正確的是 <nowiki>http://github.com/zeroclipboard/</nowiki> === 副檔名寫錯 === * .html 漏寫為 .htm === 斜線 / 誤寫為 反斜線 \ (有時候反斜線顯示成 %5C ) === (錯) http://news1.yam.com/\RSS\Rss_all.xml (對) http://news1.yam.com/RSS/Rss_all.xml (錯) http://www.javaworld.com.tw/blog/archives/snpshu/%5C%5Cmyweb.hinet.net%5Chome4%5Cs630417%5Cindex2.htm (對) http://myweb.hinet.net/home4/s630417/index2.htm === 網頁放到錯誤的(資料夾)層級 === (錯) http://datf.iis.sinica.edu.tw/Announcement/ ..%5CPapers%5C2003datfpapers%5Ce%5CE-3.pdf (對) http://datf.iis.sinica.edu.tw/Papers/2003datfpapers/e/E-3.pdf 指向硬碟檔案,必須將網站的目錄結構當作參考,猜測正確的位置 (錯) file:///C:/folder1/floder2/bb/file.htm 從網站首頁的瀏覽選單,瞭解網站的目錄架構,例如首頁根目錄下的第一層子目錄有aa, bb, cc等,所以將連結修正為 (對) http://website.url/bb/file.htm === 目錄網址須加上 / 結束 === 部分伺服器的目錄網址須以 / 結束,否則會被判讀是個同名的檔案,而找不到 (錯) http://www.google.com/googlegulp (對) http://www.google.com/googlegulp/ === 第三方網站的轉址失敗 === 有時候有些文章中的網址,由於 HTML 語法的網址錯誤或者是本身轉址失敗,導致網頁找不到。 (錯) http://website.url/tw.yahoo.com (對) http://tw.yahoo.com (錯) http://up.cool3c.com/“https://www.java.com/zh_TW/download/” (對) https://www.java.com/zh_TW/download/ === 網址後面多了空白 === (錯) http://website.url/filename.htm%20 (對) http://website.url/filename.htm === 網址變成 localhost === localhost 是指伺服器本機網址,但是必須在伺服器機器上瀏覽才會正常顯示網頁。可將網址的 localhost 改成原本網站的對外網址。 (錯) <nowiki>http://localhost/page </nowiki> (對) <nowiki>http://website.com/page </nowiki> === 網址前面少了WWW === (錯) <nowiki>http://wretch.cc/</nowiki> (對) <nowiki>http://www.wretch.cc/</nowiki> === 網址 http 改成 https === [https://errerrors.blogspot.com/2020/12/howtofixbrokenedmlinkfrombookscomtw.html 解決點選博客來訂購通知信內連結,無法開啟網頁的問題] === blogger / blogspot 網址 === blogger 會根據使用者所在位置,切換不同國家結尾的網址名稱 ([https://support.google.com/blogger/answer/2402711?hl=en country-specific URL, ccTLD]),例如台灣使用者瀏覽 example.blogspot.com ,網址會切換到 example.blogspot.tw 。因此瀏覽 [http://archive.org/web/ Internet Archive: Wayback Machine] 網頁備份,如果 example.blogspot.tw 找不到備份時,可自行修改網址為 example.blogspot.com 。例如: * 網址 .tw 結尾找不到備份: http://wayback.archive.org/web/*/http://vampirebasic.blogspot.tw/2009/01/sql-server-null-varchar-vs-empty.html * 改成 .com 則可找到備份: http://wayback.archive.org/web/*/http://vampirebasic.blogspot.com/2009/01/sql-server-null-varchar-vs-empty.html
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information