The http server redirection is the fastest. The server don't need to access filesystem before responding new location.
Nginx URL redirection example:
server {
server_name www.firstexample.com 2ndexample.com www.example.com;
rewrite ^(.*) http://example.com$1 permanent;
}
No comments:
Post a Comment