Good time. The site has static pages and relinked all static. But, if you request dynamic addresses manually, the same pages will also open.

I would like to clarify a couple of questions on what is better:

  1. do static redirects?

  2. at request of dynamic yurlov to issue 404?

  3. use canonicals?

  4. close from indexing?

  5. your options

  • What does Dynamic mean? Any kind of baldies, or they display something for a certain period of time? If you need to index - then you need to redirect to URL for indexing. in any case, 404 - if there is no page as a fact for the one who enters there. Redirect to statics is not very good. - Chad
  • It is necessary to look at a specific situation. If, for example, this is an online store with filters and you are talking about dynamic filters, then 301 is better. Here is an example - when you try to go to the address generated by the choice of filters mebelok.com/uglovie-divany/filter-2-10_714_12/79- 666 We transfer 301 to the “Only correct page” mebelok.com/uglovie-divany/filter-2-10_12_714/79-666 In another case, such a scheme may not be suitable - Makar

4 answers 4

The focus is on user convenience. Agree, it is unpleasant when you follow one link, and you are transferred to another. The principle of least surprise in action.

Accounting user convenience does not prevent the search engines to specify which page is the source.

<link rel="canonical" href="https://www.example.com/path/to/page" /> 

This tag is supported by Google and includes Yandex .

All this implies that you cannot completely eliminate the possibility of manually selecting these dynamic pages, for example, because they are already somewhere on the web. If you can, then it is better that they do not exist at all.

  • 2
    Do you often notice that a server redirect occurred? For example, I constantly drive into the address bar of the sberbank.ru browser and do not feel any discomfort that it throws me to sberbank.ru/ru/person - and sometimes this address changes over the years. Enough to verify that the certificate belongs to the Savings Bank, and there as he wants, so even redirect. Or even the entire domain: gmail.com -> mail.google.com In general, the problem is contrived. As part of "put the interests of the user above the interests of search engines" - no complaints, I fully agree. - AK ♦
  • one
    The problem is far-fetched while you come across it. For example, a site of a very large Japanese company, when entering from a search on a Japanese page ( although such ) with an English locale ( Accept-Language ), was thrown onto the main page of the English version of the site. Do you think it's cool and great to do that? (Now I checked it - they thought better of it and fixed the problem.) - sanmai

The best of the options offered by you is the 301st redirect (users' browsers pass through them without problems, search engines do not save redirects in their index).

The worst option is to give a 404 error, because you will need to monitor the ranges of IP addresses of search engines and user agents, and ordinary users to show the page. The probability of error is very large, but this never stopped experienced cloakers ... as well as the fact that search engines always have purchased ranges that they try not to advertise and user agents pretend to be ordinary users.

Closing from indexing via robots.txt is a way of disclosing information, not hiding it, there is nothing to even consider.

Canonical url is a good option ... for a good webmaster who thinks about users, not about search engines.

What else from what you did not offer, you can add? From the searchengines.ru that came to mind, you obviously do not think that it is necessary to turn off metrics and analysts for dynamic pages, otherwise they “knock” on the search engines.

Something like that in general terms.

PS “I’m a girl, I don’t want to decide anything, I want shoes and a dress!” I don’t want to bounty, I agree to one upvote and hat This is Fine :)

    It would be nice to write about which engine (CMS) in question. If the problem is in duplicate pages, when several url-addresses are sent to the same page, then the easiest way to solve is to edit in robots.txt or rel-canonical (or better, both). It occurs in all popular engines such as Wordpress, Joomla and the like. Especially in older versions of engines.

    For example, for old versions of Wordpress, when using the CNC, it was important to prescribe:

    • Disallow: * /?
    • Disallow: * / feed
    • Disallow: /? S =

    Thus, we closed all unnecessary urls (feed, search pages, dynamic url) from indexing and left only the CNC. If this is not done then search engines will index a bunch of garbage pages with duplicate content. Instead of the actual 100 pages of the site, much more will be indexed, which in itself devalues ​​the value of the site’s pages, creates unnecessary competition between the pages inside the site and makes it difficult to promote the site (for example, instead of the necessary page in search engines, its duplicate is displayed, and you need to buy links to it or order advertising, it turns out all subsequent actions will have less return).

    In order to make sure that you are right, you can register with the google-webmaster and see which pages are in the index.

    In principle, you can make 301 redirects for small sites for complete control, or within multi-page sites for individual "pumped" and specially promoted pages.

      point by point and in the context of php ( there are other solutions and the choice of the best is determined by criteria that are not defined within the scope of the task at the time of writing the answer ):

      1) make redirects to static?

      2) when requesting dynamic legal entities to issue 404?

      The solution for both items in php is the header () function.

      3) use canonicals?

      if there are duplicate links to the same page, then rel = canonical use is mandatory

      4) close from indexing?

      implemented by noindex, nofollow tags

      Answer: As far as I understand, it is important for search engines that clauses 3 and 4 are mandatory, and clauses 1 and 2 you can implement or not, at your discretion.