0

Hello,

Google is currently indexing query string URLs of my website. Google has currently indexed almost 112k URLs that all of are duplicate versions of other URLs causing my website to slow down and negatively affecting my SEO.

The structure of the query strings URL is as follows: https://example.com?te=6.18.1346158.4.18.76.huffy+blue+and+white+bike

I contacted the search community earlier and they suggested me to add 404 status to the URLs with this pattern in my .htacces file.

What code should I add in my .htaccess file to block these URLs from google.

3
  • If you only want to restrict search engines, IMO a robots.txt approach would make more sense. Commented May 23, 2023 at 12:07
  • Are you using WordPress or PHP alone? Commented May 23, 2023 at 13:58
  • I am using WordPress, Also I want to remove Google and robots.txt approach is used for crawling not indexing. Commented May 24, 2023 at 13:06

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.