0

I had my VPS host enable mod_speling, but I'm not sure it's working, and just wanted to check with you guys that I've got the right idea about it.

I have URLs on the server like this:

https://www.example.com/users/TOMMO/
https://www.example.com/users/JULIE/

People that type URLs using all lower case are getting 404 errors, so I figured enabling mod_speling would fix it. This is what I have in .htaccess:

RewriteEngine On
CheckCaseOnly On

Should this be working?

4

1 回答 1

0

mod_speling 文档是这样说的CheckCaseOnly

设置后,此指令将拼写更正的操作限制为小写/大写更改。不执行其他可能的校正。

所以这听起来很像你想要的。If 不会尝试更正:https://www.mysite.com/users/juliee/但是当您转到https://www.mysite.com/users/JULIE/.

但是,如果您不使用 mod_rewrite,则不需要RewriteEngine On行。

于 2013-12-27T06:30:19.913 回答