For redirection I use to 301:
Redirect 301 ^(www.)?velhosite\.com\.br/?people=alguem$ http://novosite.com.br/?pessoa=alguem
Redirect 301 ^(www.)?velhosite\.com\.br/uma-pagina-qualquer?people=alguem$ http://novosite.com.br/uma-pagina-qualquer?pessoa=alguem
But you can point the entire structure of the root site to a subdomain for example, and from there you make the redirects you need:
RewriteRule ^(.*)?$ http://novosite.com.br/$1 [R=301,L]
You can also make a condition, for a certain domain:
RewriteCond %{HTTP_HOST} ^(www.)?velhosite\.com\.br$
RewriteRule ^(/)?$ http://novosite.com.br/novo-layout/ [R=301,L]
For each substitution rule, you put in order:
role model: ^pagina.php?a=(.*)&b=([0-9])&c=([a-z])$
, can be represented by: /a/$1/b/$2/c/$3
or /a-$1/b-$2/c-$3
or $1/$2/$3
or $1-$2-$3
or a=$1&b=$2&c=$3
You can also modify the order, example: /c/$3/b/$2/a/$1
.
What makes the rule recognized is the url typed in the browser, will be interpreted and trigger the original link (the rule) on the server side.
Redirect 301 ^(www.)?velhosite\.com\.br/?people=(.*)$ http://novosite.com.br/?pessoa=$1
Redirect 301 ^(www.)?velhosite\.com\.br/(.+)?people=(.*)$ http://novosite.com.br/$1?pessoa=$2
See more information about rules on apache documentation.
Friend, another question using the first principle that spoke where has "someone" varies by username need to pass the user to the other site and in "one-page-any" is the same thing are several pages how to send it? The old site is still active I just want to redirect who enter via "? eople=someone" understand? Help me in this... Fight...
– Müller Nato
I edited there @Müllernato, see if you can understand. Just pointing out that depending on the flag, or the rule, it forces everything to be typed so there are changes.
– Ivan Ferrer