Bad Bot Blocker – .htaccess

Here is a basic bad block blocker for the .htaccess file.   RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*(Baiduspider|HTTrack|Yandex|mj12bot|bingbot).*$ [NC] RewriteRule .* – [F,L]    

HTTP and HTTPS w/ www Redirect via .htaccess

So every now and then I run into an issue where I need to setup redirects for addon domains.  Here is one method that has always worked for me.  Adding it in this way allows for https and non http and also handles non-www and www to redirect to the www.newdomain.com...