Mobile app version of vmapp.org
Login or Join
Gail5422790

: Why Google does not fetch some $_GET parameters in URL? I have StackOverflow style URL's in my site, like mysite.com/article/42/the-article. However, when I search for the article, I see that

@Gail5422790

Posted in: #Google #Url #UrlParameters

I have StackOverflow style URL's in my site, like mysite.com/article/42/the-article.

However, when I search for the article, I see that Google has fetched it like this mysite.com/article/42/.

Am I doing something wrong here? Should I tell Google to fetch everything?

Edit:

I forgot to add that these URL's are converted to php $_GET URL's in the .htaccess file. So the URL's actually point to this:

index.php?what=content&id=42&title=the-article


And the reason I'm surprised is, the links are in the homepage and all of them uses the form with titles.

So there is no links in this form:

mysite.com/article/42


All links are in this form :

mysite.com/article/42/the-article

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

2 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

Stack Exchange sites redirect when the URL is truncated, or the title of the post has change.

For example the URL for this page is: /questions/50697/why-google-does-not-fetch-some-get-parameters-in-url. You can check that both /questions/50697/ and /questions/50697/some-other-title redirect to the correct canonical URL.

If you are not doing "URL Canonicalization" to tell Googlebot which URL is the correct one, then Google may choose any of the possible URLs. Even worse, this can sometimes lead to massive duplicate content problems.

URL canonicalization can be implemented in two ways:


With 301 redirects (like stack exchange does)
With meta canonical links (like Nicholas suggests)

10% popularity Vote Up Vote Down


 

@Sent6035632

I recommend that you add the canonical form of the URL to each web page:

<link rel="canonical" href="http://mysite.com/article/42/">


You may also with to do a permanent redirect to the longer URL if you get a request to the shorter one (with the L flag if using mod_rewrite, and before you do the internal rewrite to index.php).

Secondly, I suggest that you add a sitemap and notify Google of it's existence. Include the long forms of the URL for each article. That just makes sure Google knows about them, and reduces the time it will take Google to (re-)crawl your whole site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme