I am using this code that blocks a URL with the word foo
RewriteEngine On
RewriteRule ^foo - [F]
It works fine, but, how do I make it work with the existing .htaccess code from WP which is below?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress