I'm French.
A week ago, my website was hacked with the old version (http). The hack created 404 spams and I want to ensure they have "410 Gone" status.
My problem on the site is: https://www.example.com/aasption
I tried:
RewriteRule ^aasption - [G]
in the htaccess. It doesn't work. What is going wrong?
UPDATE:
The problem is that I'm still getting a 404.
Example URLs that have been spammed:
www.example.com/aasption.asp?id=puma/puma-ambition-collant/prd/9723115?...
wwww.example.com/aasption.asp?search=puma&page=5
My .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^aasption - [G]
</IfModule>
.htaccess
file?