0
I have the following line:
RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1
I needed him to accept the characters @ : = ! ?
How can I do?
0
I have the following line:
RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1
I needed him to accept the characters @ : = ! ?
How can I do?
1
RewriteRule ^usuario\/([a-z,0-9,A-Z,._@:=!\?-]+)?$ index.php?pg=usuarios&usuario=$1
[] works as a capture by verification, "in the character I am testing 'I' I accept what possibilities?", does not need to appear several times - although I believe its purpose was to separate contentsa-z,0-9,A-Z, = a-z0-9A-Z\, \?, \+[] you have two means of capture literally the - having in view that he is also a special character (from, up), keeping him at the end -] or applying exhaust \-a-zA-Z0-9_ which is precisely the anchor \wRewriteRule ^usuario\/([\w,.@:=!\?-]+)?$ index.php?pg=usuarios&usuario=$1
Browser other questions tagged php regex htaccess
You are not signed in. Login or sign up in order to post.
Let him accept where? Together in the square brackets?
– Guilherme Lautert
Anywhere if I search for J:Osi=m@r@! no error
– Josimara
Yes in the square brackets.
– Josimara