410s not working
-
Hi all – thanks John for the rad plugin.
My site got hacked by I managed to stamp on it before anything happened.I have a lot of spammy links which are gone but Google is seeing 503s. So, I want to create 410s and let Google know.
I have a bunch of links that follow this pattern:
domain.com/?aamun=morevariablesSo I am trying to match on ?aamun and ?pbuuu etc.
I tried this in htaccess like this, but no joy.
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)\?aamun.*$ - [G,L,NC] </IfModule>
I also tried querystring matches (no joy). It seems to be able to not extract the ?aamun.
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{QUERY_STRING} ^(.*)\?aamun.*$ RewriteRule .* - [G,L,NC] </IfModule>
No joy though.
So in Redirection, I’ve added this regex. (I am a total htaccess/regex noob)
^(.*)\/\?aamun.*$ as a 404.
I also tried ^(.*)\?aamun.*$ as a 404 and 410 but can’t get it work (have cleared caches).An example URL is below. THANKS for any help! ??
(https://www.velonomad.com/?aamun=ct-binary.2414215&catid=15&binary=24142)
- The topic ‘410s not working’ is closed to new replies.