I'm trying to grab the current pages URL and change some values in it before redirecting to the next page with header()
If my current url is http://example.com/abc-def-1-xxx-g.php
I want to change the xxx
part to a
so my url will then be http://example.com/abc-def-1-a-g.php
Heres what I have for the header on the xxx page before redirect
header("Location: whattoputhere.php?". $_SERVER['QUERY_STRING']);