How to create search engine friendly redirects?
Posted: Thu May 21, 2009 8:20 pm
I've been trying to accomplish the same type of thing. I did a similar method as you:
Unfortunately that isn't the proper way as it causes a 302 redirect. I would like my site to be search engine friendly, so a 302 redirect will cause problems. If you happen to figure out how to do this properly, please post how. 
Gonna try it your way and check the headers.
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.