更新时间:2023-02-23 08:32:17
首先你必须把这个添加到你的 httpd.conf:
First You have to add this to your httpd.conf:
RewriteMap lc int:tolower
然后将以下代码粘贴到您的 .htaccess
Then paste the below code into your .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^[^A-Z]*[A-Z].*
RewriteRule ^ ${lc:%{REQUEST_URI}} [L,R=301]
这段代码重定向了来自
www.tESTUrl.com/sOMePath/?q=SomeStringHere
到www.testurl.com/somepath/?q=SomeStringHere