broken links from Google with {"search_type":"post"} appended

Mr Lucky

Well-known member
I have started to see 404s from what might otherwise be a useful inbound link from google

e.g. https://cafesaxophone/thread/something.123/{"search_type":"post"} instead of what the thread actually is, ie https://cafesaxophone/thread/something.123/

So two questions:

What is happening here?

and

Can anyone please suggest a redirect that will work to strip out {"search_type":"post"} ?

Thanks
 
Put them into the inspector in Search Console to see where Google is claiming to have found them, and remove them.
This is all a I see (The page itself without the last bit added is valid and indexed, just the last bit breaks the link)


google.webp


This one I can redirect easily, but there are other similar ones which add the thread id number in the last bit and I have no idea how to strip that out via htaccess.

e.g.
https://cafesaxophone.com/threads/king-zephyr-bari.3244/{"search_type":"post","c":{"thread":3244}}
 
Last edited:
Solved the redirects:

Code:
RewriteEngine On
RewriteRule ^(.*)/{"search_type":"post"}/?$ /$1/ [L,R=301]

RewriteEngine On
RewriteRule ^(.*)/{"search_type":"post","c":{"thread":[0-9]*}}/?$ /$1/ [L,R=301]
 
Back
Top Bottom