.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

https://gist.github.com/565a67b52c8255d2326b

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

https://gist.github.com/9b1a8930bf90af74c98f

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

https://gist.github.com/61a1b1fd482f07b3b7d0

Share the Post: