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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -