apache - Rewriting Query string values -


i have url this

https://hello.co.uk/foo?page_uri=/eggs/1979&other_url=https://twitter.com/ 

i need rewrite page_uri value, if contains /eggs/ /cake/ resulting url

https://hello.co.uk/foo?page_uri=/cake/1979&other_url=https://twitter.com/ 

i thought

rewriterule ^(.*)/eggs/(.*)$ $1/cake/$2 

would work, ignores query strings. possible this, doesnt matter order of query parameters, swaps out word?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -