.htaccess files are used to configure apache on a per-directory basis. they are not in C or C++ syntax.
Its about configuration, not programming. You can read more in: http://httpd.apache.org/docs/2.0/howto/htaccess.html

Have a good day!