Mobile app version of vmapp.org
Login or Join
Kimberly868

: URLs with trailing questionmark (?) 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

@Kimberly868

Posted in: #CanonicalUrl #Redirects #Url

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 ??

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly868

2 Comments

Sorted by latest first Latest Oldest Best

 

@Fox8124981

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.

10% popularity Vote Up Vote Down


 

@Shakeerah822

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme