htaccess特定字符串不起作用

I have this line in my .htaccess

RewriteRule ^values/?$ values.php [NC,L]

It is working perfectly in localhost, but when I uploaded it to the server, it is not working, goes to 404.

When I remove the 's', it works. Like this:

RewriteRule ^value/?$ values.php [NC,L]

How come? Thanks!

EDIT added Options -MultiViews and it works

Add Below line above rewrite rule and check if it works for you

 RewriteEngine On

So your code may look like

 RewriteEngine On
 RewriteRule ^values/?$ values.php [S=3,NC,QSA,L]