0
我有功能,直接HTML页面的匹配PHP页面名称.htaccess的隐蔽大写字母为小写和重定向的HTML PHP页面
RewriteRule ^(.*).html $1.php [L,NC]
如果我键入一个URL能正常工作,这样我们www.example.com的/privacy.html(privacy.php是网页被渲染)
的第二个要求是大写转换为小写的URL,这样我在http.conf中添加该代码
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]
,这个代码htaccess的CheckSpelling上
从大写的covertion为小写的作品,但现在
www.example.com/PRIVACY.html
成为
www.example.com/privacy.php
如果键入www.example.com/privacy.html
仍然有效。网址不变
我想保持URL在.html结尾任何人都可以帮忙吗?