A client wants the old .aspx path could redirect the visitor to another URL. I don’t want to make the server to host a .aspx file so i add the redirection in the Nginx virtual host config.
Add the following lines insider the server { … }.
## Special redirect for the following
## old xxx.aspx to eureka.ykyuen.info
location /xxx.aspx {
return 301 $scheme://eureka.ykyuen.info;
}
Done =)
