Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过添加以下内容启用了 public_html 下文件夹的目录列表:
选项+索引
在 .htaccess 文件中。
但是,默认情况下某些文件未正确列出,因为某些文件名是中文(UTF-8 编码)。如果将浏览器的字符集编码更改为 UTF-8,我可以看到文件名。
如何让浏览器默认看到 UTF-8 格式的文件名?.htaccess 中是否有要添加的参数?我尝试添加:
添加默认字符集 utf-8
在 .htaccess 文件中,但它不会改变任何东西。
谢谢~
IndexOptions 字符集=UTF-8