user3553866
user3553866

Reputation: 326

edit htaccess to make it case insensitive

My actual .htaccess using for the URL rewriting is case sensitive :

RewriteEngine on

RewriteRule ^([a-zA-Z_0-9]+)/([a-zA-Z_0-9]+)$ /BB/index.php?controller=$1&action=$2

I would like to make it case insensitive.

Have you an idea please ?

Upvotes: 0

Views: 108

Answers (1)

Get Off My Lawn
Get Off My Lawn

Reputation: 36311

To make it case insensitive, you would add the NC flag at the end of the line:

http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_nc

RewriteEngine on

RewriteRule ^([a-zA-Z_0-9]+)/([a-zA-Z_0-9]+)$ /BB/index.php?controller=$1&action=$2 [NC]

Upvotes: 1

Related Questions