[英]htaccess Rewrite Rule - Allowing Capital Letters in URL
I have the following Rewrite Rule: 我有以下重写规则:
RewriteEngine On
RewriteRule ^brand/([0-9a-zA-Z-]+)/?$ find_by_brand.php?brand=$1
RewriteCond %{THE_REQUEST} find_by_brand\.php
RewriteRule ^find_by_brand\.php - [F]
I want it to be able to work if I go to /Michelin/ and also /michelin/ 我希望它能够工作,如果我去/米其林/和/ michelin /
Does anyone have any idea what I could add to make that work? 有没有人知道我可以添加什么来使这项工作?
Thanks! 谢谢!
添加[NC]
标志(“无案例”)
RewriteRule ^brand/([0-9a-zA-Z-]+)/?$ find_by_brand.php?brand=$1 [NC,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.