I have the following line:
RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1
I needed it to accept the characters @ : = ! ?
How can I do this?
I have the following line:
RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1
I needed it to accept the characters @ : = ! ?
How can I do this?
RewriteRule ^usuario\/([a-z,0-9,A-Z,._@:=!\?-]+)?$ index.php?pg=usuarios&usuario=$1
[]
works as a catch per scan, "in the character I'm testing, do I accept what possibilities?" ,
does not need to appear several times - although I believe its intent was to separate contents a-z,0-9,A-Z,
= a-z0-9A-Z
\
, \?
, \+
[]
you have two means of capturing literally -
having in mind that it is also a special character (from, to), holding it at the end -]
or applying escape \-
a-zA-Z0-9_
which is just the anchor \w
RewriteRule ^usuario\/([\w,.@:=!\?-]+)?$ index.php?pg=usuarios&usuario=$1