Page 1 of 1

How to create search engine friendly redirects?

Posted: Thu May 21, 2009 8:20 pm
by abbbbi
I've been trying to accomplish the same type of thing. I did a similar method as you:

Code: Select all

if(preg_match("/page\?question=(.+)&submit=Confirm/", $_SERVER['REQUEST_URI'], $match))
{ 
    header('Location: http://example.com/page/'.$match[1]); 
}
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.

Re: How to create search engine friendly redirects?

Posted: Thu May 21, 2009 10:28 pm
by webnhance
Try this page here, helped me accomplish the same goal.

http://www.webconfs.com/url-rewriting-tool.php