我想将所有大写网址重定向到小写网址,反之亦然,在 godaddy 托管的 vps linux 上大约 300 个网址


I want to redirect all upper-case url to lower-case and vice versa at vps linux hosting at godaddy approx 300 urls.

我在 linux vps 主机上托管了 html 网站,当我将其从 Windows 转换为 linux 时,所有大写 url 都显示 404 页面,我想解决这个问题,该怎么办?

如果你可以使用不区分大小写的URL而不是使用

.htaccess 文件

rewriteRule (.)* (.)* [NC,L]