R
R
Ruslan Makarov2020-08-23 03:15:08
Search Engine Optimization
Ruslan Makarov, 2020-08-23 03:15:08

How to disable indexing of ref links in robots.txt (duplicate)?

Good!
There is a landing page where referrals send traffic:
/landing
Tell me what to write in robots txt? To leave a landing page in the search but prevent duplicates of this type:
/landing?ref=70
/landing?ref=71 etc.

thanks a lot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nikitin, 2020-08-23
@facepook

Nothing in robots. Add it to a <head>tag <link>with an attribute rel="canonical"on your landing page and it will point to the canonical page and consolidate duplicate urls to it. Well, in general, read about this attribute.
<link rel="canonical" href="//example.ru/landing">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question