Alex Rivera | Logout

[^/]+ explanation in htaccess

Asked 2012-02-13T09:32:34.643
9

I have this htaccess code

RewriteRule   ^/([uge])/([^/]+)$  /$1/$2/

But I couldn't really understand what does [^/]+ do? I've been searching this on Google for awhile, but I couldn't get what I wanted.

Edit
Report

1 Answer

8

[^/] means any character not matching /.

answered 2012-02-13T09:43:16.123

Your Answer