regex - mod_rewrite allow percentage sign in url -


i have rewrite rule

rewriterule ^([a-za-z0-9\/\-\_]+)+$ .?p=$1 [l] 

but if have % sign in url, won't work. how modify rule work percentage sign?

you can add % character class ([…]). character class specifies group of characters successful matches.

rewriterule ^([a-za-z0-9/_%-]+)$ .?p=$1 [l] 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

c++ - Update and multiple console windows -