htaccess.txt is a web server configuration file, most commonly used by Apache. Usually it is used to define access control on directory basis. But in fact, you can override many web server settings there. The mod_rewrite module allows to define rewrite of URL for example to create SEO friendly URL for the internet, transforming them to something "unfriendly" on the server itself and vice versa with regex.
Juergen