How to set first redirect rule


I’ve just installed the plugin as I’m told I need to edit my HT Access file to prevent some spammy link/404 issues.

Here’s exactly what I’m told to do from the guide I’m using:

“The first step should involve editing the .htaccess file and setting this as the first Rewrite rule: 

RewriteRule ^1000/?$ – [G]RewriteRule /1000/?$ – [G]

So basically, I’ve got to add this to the ht access file. But I’ve no idea what to do. Is this in place of any existing redirect rules in the file? Alongside other redirect rules? Where exactly in the HT access code do I put this snippet?

When I tried to put this above the first existing rewrite rule, the test feature told me it was incorrect.

For everything I’ve tried so far, when I test the changes, I always get the error message that the code syntax has failed and it will break the site. Strangely, I still get this error when I make NO changes to the code, so any help on getting this rewrite rule done correctly would be appreciated,




This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer