Direkt zum Inhalt

Devbits

Kleine Code-Schnipsel aus unserem Alltag mit Drupal, PHP und DevOps: Problem, Lösung, Code.

18.06.2024 | Dominik Wille

Prevent destination URLs from being indexed by search engines

Search engines might index URLs multiple times if they have different destination parameters. For example if you have a login form in the sidebar the action URL might be different on each page.

Disallow: /*?destination=
Disallow: /*&destination=

Issue:

Search engines might index URLs multiple times if they have different destination parameters. For example if you have a login form in the sidebar the action URL might be different on each page.

Solution:

Insert the provided entries into your robots.txt file.