Like you said .httaccess file is very powerful, what you need to add or remove to it depends on what you are trying to achive. There is a pretty
lenghty post here about .httaccess files including and example .httaccess file.
If you are not on Apache, other web servers such as IIS servers have their own ways of doing same thing .httaccess file do on Apache