i am need to know to do a url rewrite

i want my website address to be like this

orginal url: http://www.websitename.com/name.html
new url: http://www.websitename.com/name

thanks