1

I understand that URLs with or without trailing slash are considered two different resources and therefore we should use redirects to tell Google which one is the canonical one.

But what about trailing ? (and nothing else behind, so basically empty GET parameters). Do I need to care about them and should I redirect them to the same URL without a trailing ??

2
  • 1
    It's still a different URL and theoretically different content could be served based on the URL. The same principle applies as in this other question: webmasters.stackexchange.com/questions/87318/…
    – MrWhite
    Commented Nov 27, 2015 at 10:53
  • 1
    Make sure you set the correct URL in your canonical tag so that search engines know which to prefer. Commented Nov 27, 2015 at 15:33

2 Answers 2

1

If you are using WordPress as CMS you can install Yoast SEO and in that you can set permalink to overcome this issue.

If you are using PHP you will need code to set permalink.

0

There are two things you can/should do:

1. Search Console Settings

In Google Search Console, help Google understand how it should treat different get parameters. More often than not Google will get this right, but there's no harm in providing additional information, so long as it is accurate.

2. Canonicals

If the get variable is for tracking purposes and or doesn't affect the content on the page, set a canonical to the version of the page you would like Google to serve. If the content is paginated and the get parameter specifies page number or limit, set the canonical to point to the "All" page. If an all page doesn't exist, you can specify previous and or next as well as a canonical, but be sure to not set the canonical to just the first page of results. More on this can be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.