Task – redirect all requests from old-domain.com to new-domain.com
use nginx, luke! It`s simple.
server {
server_name old-domain.com www.old-domain.com;
rewrite ^/(.*)$ http://new-domain.com/$1 permanent;
}
server_name old-domain.com www.old-domain.com;
rewrite ^/(.*)$ http://new-domain.com/$1 permanent;
}
0 Comments.