301 Redirect in different languages

It is very easy to just Redirect user to another page in different types of languages eg: asp.net,php,java etc. But sometimes we need to redirect user to another page with Status Code 301. What is 301 redirect? 301 redirect means permanent redirect from one URL to the other. 301 redirect gives beneficial of SEO, by this your website ranking will not effected.