I`m using apache2 on ubuntu 11. I want to secure my wordpress site with .htaccess rules, but I understand that it is preferable to put the rules in the apache config file (httpd.conf). If I understand correctly, the virtual site config file (under /etc/apache2/sites-available) is the config file for my wordpress, and not the main apache config.
I want to put Mod_rewrite rules on my site, but when I put it in the config file of the virtual host, apache wont start (file to read the rules), so, Do I have to use .htaccess, or can I use the virtual host config file. (this is what I want to accomplish: http://journalxtra.com/websiteadvice/wordpress-security-hardening-htaccess-rules-4025/)
Thank you! asaf