regex - .htaccess RewriteRule with slash in url -


what need following rewrite rule slash in url?

http://www.website.com/p/equity+investment+corp%2fga

to

http://www.website.com/test.php?name=equity+investment+corp%2fga

i tried following way not working.

rewriterule ^p/(.*) /test.php?name=$1 [pt] 

your rule fine %2f isn't allowed in uris apache. allow %2f encoded / need add:

allowencodedslashes on 

in <virtualhost...> section or in global context of apache config.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -