i made a rewrite rule for my script but i have a little problem i want to add ( :,-,_ ) into the rule but i always get error
i use this code
RewriteRule ^([0-9a-zA-Z]{1,200})$ go.php?s=$1 [L]
that code allowing to use az and AZ and i want to add those symbols to the rule
the symbols are :
: , - , _
to that code.
please help me to correct that code and i will be happy for that
Is this what you tried? The rule below adds the three characters ( :
, _
, -
) to your pattern:
RewriteRule ^([0-9a-zA-Z:_-]{1,200})$ go.php?s=$1 [L]
You just need to update your regex a little bit for it.
Updated regex would be: ^([0-9a-zA-Z:_-]{1,200})$
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.