
我有一個 WordPress 網站,當我上傳像這樣的法國名稱的圖像(安全)時,我的伺服器找不到該圖像,瀏覽器返回 404 錯誤。但圖像在伺服器上。
我嘗試了很多事情,但沒有任何效果
1:我把這個加到我的httpd.conf
AddDefaultCharset on
AddDefaultCharset utf-8
2:
AddCharset UTF-8 .png
AddCharset UTF-8 .html
IndexOptions +Charset=UTF-8
3:
我想為此更改 i18n 檔案上伺服器的預設語言:
LANG=fr_FR.UTF-8
SUPPORTED="en_US.utf8:en_US:en:fr_FR.utf8:fr_FR:fr :es_ES.utf8:es_ES:es:de_DE.utf8:de_DE:de:sv_SE.utf 8:sv_SE:sv:zh_CN.utf8:
zh_CN:zh:zh_TW.utf8:zh_TW:zh:ja_JP.utf8:ja_JP:ja:k o_KR.utf8:ko_KR:ko"
4:全部都在這個頁面上
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions
在我的 .htacces 上我有這個:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>