h5ai 中文目錄及文件均為亂碼的更正方法建站文章
導(dǎo)讀:建站文章建站文章h5ai 是老外大神專門提供的一個小程序來改進(jìn)apache 默認(rèn)目錄索引頁面,并提供包屑路徑導(dǎo)航和樹型概述功能。功能是不錯,但是對中文的支持太爛了,而且網(wǎng)上針對seo網(wǎng)站優(yōu)化培訓(xùn)企業(yè)網(wǎng)站建設(shè)。
h5ai 是老外大神專門提供的一個小程序來改進(jìn)apache 默認(rèn)目錄索引頁面,并提供包屑路徑導(dǎo)航和樹型概述功能。功能是不錯,但是對中文的支持太爛了,而且網(wǎng)上針對這方面的資料實在太少,在國外也有文章收錄了有關(guān)h5ai的BUG,就在這里有提到Accents make folders show empty or forbidden的問題。幸好,Google了h5ai charset,發(fā)現(xiàn)一中文博客,博主lerx提供了解決思路即相關(guān)文件(其原文),真是太感謝了,雖然經(jīng)測試,中文文件名及目錄已經(jīng)正常顯示了,但URL 仍無法解決,依然提示403錯誤:
“Forbidden
You don’t have permission to access XXX on this server.”
先搬運原文作為記錄,感謝lerx博主的分享:
網(wǎng)上搜索H5ai資料,竟然沒有。只有自己研究了。配置文件發(fā)現(xiàn)不到異常,也沒有配置的選項。
在右鍵查看網(wǎng)頁源碼的時候,發(fā)現(xiàn)了一個有趣的東西。
<!DOCTYPE html><!--[if lt IE 9]><html class="no-js oldie" lang="en"><![endif]--><!--[if gt IE 8]><!--><html lang="en" class="no-js"><!--<![endif]--><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>index 路 styled with h5ai 0.22.1 (http://larsjung.de/h5ai/)</title><meta name="description" content="index styled with h5ai 0.22.1 (/uploads/allimg/20230528/501548471421.png"><link rel="stylesheet" ><link rel="stylesheet" href="/_h5ai/client/css/styles.css"><script src="/_h5ai/client/js/scripts.js" data-mode="php"></script></head><body id="h5ai-main"><div id="topbar" class="clearfix"><ul id="navbar"></ul></div><div id="content"><div id="extended" class="clearfix"></div></div><div id="bottombar" class="clearfix"><span class="left"><a id="h5ai-reference" title="h5ai 路 a modern HTTP web server index">h5ai 0.22.1</a><span class="hideOnJs noJsMsg">鈿?JavaScript is disabled! 鈿?/span><span class="oldBrowser">鈿?Some features disabled! Works best in <a >modern browsers</a>. 鈿?/span></span><span class="right"></span><span class="center"></span></div><div id="data-generic-json" c營銷型網(wǎng)站建設(shè)lass="hidden">{"entries":[{"absHref":"\/","time":1355304140000,"size":11065261,"test":null,"status":200,"content":false},{"absHref":"\/files\/","time":1355309684000,"size":9937735,"test":null,"status":"=h5ai=","content":true},{"absHref":"\/files\/film\/","time":1355319999000,"size":8192,"test":null,"status":"=h5ai=","content":false},{"absHref":"\網(wǎng)站seo優(yōu)化診斷工具/files\/music\/","time":1355236136000,"size":4096,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%B2%E2%CA%D4\/","time":1355384869000,"size":16384,"test":null,"status":"=h5ai=","content":true},{"absHref":"\/files\/%B2%E2%CA%D4\/Lerx%B2%E2%CA%D4%CA%D3%C6%B5\/","time":1355384869000,"size":4096,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%B2%E2%CA%D4\/Lerx%C8%ED%BC%FE%D7%CA%C1%CF\/","time":1355384843000,"size":4096,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%B2%E2%CA%D4\/Lerx%D1%A7%CF%B0%BD%CC%B3%CC\/","time":1355384853000,"size":4096,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%B3%CC%D0%F2\/","time":1355236099000,"size":4096,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%D5%D5%C6%AC\/","time":1355236306000,"size":9896766,"test":null,"status":"=h5ai=","content":false},{"absHref":"\/files\/%D7%CA%C1%CF\/","time":1355236114000,"size":4096,"test":null,"status":"=h5ai=","content":false}]} </div><div id="data-php-no-js-fallback" class="hideOnJs"><table><tr><th></th><th><span>Name</span></th><th><span>Last modified</span></th><th><span>Size</span></th></tr><tr><td><img src="/_h5ai/client/icons/16x16/folder-parent.png"/></td><td><a href="..">Parent Directory</a></td><td></td><td></td></tr><tr><td><img src="/_h5ai/client/icons/16x16/folder.png"/></td><td><a href="/files/%B2%E2%CA%D4/Lerx%B2%E2%CA%D4%CA%D3%C6%B5/">Lerx測試視頻</a></td><td>2012-12-13 07:47</td><td>4 KB</td></tr><tr><td><img src="/_h5ai/client/icons/16x16/folder.png"/></td><td><a href="/files/%B2%E2%CA%D4/Lerx%C8%ED%BC%FE%D7%CA%C1%CF/">Lerx軟件資料</a></td><td>2012-12-13 07:47</td><td>4 KB</td></tr><tr><td><img src="/_h5ai/client/icons/16x16/folder.png"/></td><td>網(wǎng)站建設(shè)制作<a href="/files/%B2%E2%CA%D4/Lerx%D1%A7%CF%B0%BD%CC%B3%CC/">Lerx學(xué)習(xí)教程</a></td><td>2012-12-13 07:47</td><td>4 KB</td></tr></table></div></body></html>關(guān)鍵詞標(biāo)簽: 暫無
聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-28 ,文章h5ai 中文目錄及文件均為亂碼的更正方法建站文章主要講述暫無網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_11770.html
為你推薦與h5ai 中文目錄及文件均為亂碼的更正方法建站文章相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12