.htaccess Optimisation – Snippet Swipe File

WP Tutor

I would only recommend that Advanced & Expert users use these snippets!

This small collection of .htaccess code snippets are things that I've picked up over my time on the web for very specific uses. The .htaccess file is very dangerous to the wbesites health f you do anything wrong so I highly recommend that you fully backup everything before starting to use any of this code.

1. To Remove the generic /category/ slug in your category URLs


2. Stop Spammers in their Tracks with Comment Deny for No Referrers


3. Ban Spammers from your site when you know their IP address


Share the Post: