Rewrite Rule with dynamic link -


i trying rewrite rule:

from: http://example.com/login.php?new="dynamic string"

to: http://example.com/signup/?new_user="dynamic string"

my code:

rewriterule ^login.php(.*)$ /signup/$1 

but cant right result... get:

http://example.com/?new_user="dynamic string"

worked me:

rewritecond %{query_string} new=(.*) rewriterule ^login.php(.*)$ /signup/?new_user=%1 [r=301,l] 


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -