How do you put your own rules into .htaccess?

This is the default. WordPress will add markers before and after its rules and not touch anything else:

# BEGIN WordPress
# WP rules here …
# END WordPress

Just make sure to set your rules before the WordPress rules, because WordPress’ rewrite rules are rather greedy (they have to), so later rules will probably not apply.