I'm just recovering from reformatting my computer and it turns out I forgot to backup my backups, and the inevitable happened. I accidentally overwrote my .htaccess file which for the life of me I can't recreate it.

I use ?p= to dictate what to display in the page and I used rewrite to mask domain.com/?p=foo/bar as domain.com/foo/bar/, and now the entire site is un-navigatable. I've been messing around for the best part of an hour and I can't seem to get it right. Can anyone furnish me with the right answer?