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.
当在我的 apache 服务器上找不到文件时,服务器会自动将 (http 301) 重定向到具有相似名称的文件。
例如,如果文件
http://myserver.com/files/image012.jpg
被请求,但不存在,服务器重定向到
http://myserver.com/files/image021.jpg
(确实存在)。
我怎样才能防止这种情况?
您的服务器可能默认激活了自动拼写检查。尝试将以下行添加到您的 .htaccess 文件中
CheckSpelling off