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
Post a Comment