Code: Select all
if(preg_match("/page\?question=(.+)&submit=Confirm/", $_SERVER['REQUEST_URI'], $match))
{
header('Location: http://example.com/page/'.$match[1]);
}Gonna try it your way and check the headers.
Moderator: General Moderators
Code: Select all
if(preg_match("/page\?question=(.+)&submit=Confirm/", $_SERVER['REQUEST_URI'], $match))
{
header('Location: http://example.com/page/'.$match[1]);
}