有关Apache重定向的问题。如果我将站点移动到新域,但大多数URL正在更改,我是否将301重定向放在新服务器或旧服务器上,还是在服务器之间拆分?例如:
# This goes in .htaccess on old server:
301 Redirect http://myoldsite.com/ http://mynewsite.com
# This goes in .htaccess on new server:
301 Redirect /old-path-1 http://mynewsite.com/new-path-1
301 Redirect /old-path-2 http://mynewsite.com/new-path-2
301 Redirect /old-path-3 http://mynewsite.com/new-path-3
...等