you have to use 301 permanent redirection for this. if you are using apache server than you have write code in .htaccess file and if you are using IIS then in IIS Server admin setting will give you the preferred URL setting option so you can resolve issue properly.