Tag Info

Hot answers tagged

10

Spaces in URLs should be encoded. That would eliminate foo abc.jpg as the canonical. Here is a question that addresses how the space should be encoded: In a URL, should spaces be encoded using %20 or +? Spaces may only be encoded as a + in the query string portion of the URL, so that eliminates the foo+abc.jpg as the canonical. Your canonical URL ...


5

Putting the ID near the beginning of a URL is better than putting it near the end. URLs often get truncated in emails or by CMS systems that show them to users. When the ID is at the end the truncation will often lop it off and cause 404 errors on your site. When it is near the beginning, your site can still redirect to the full URL. When Googlebot ...


4

Here is Google's position from an archived live chat session (the link is now dead): *Does inconsistent capitalization of URLs cause duplicate content issues and dilution of page rank? For example www.site.com/abc vs www.site.com/Abc. On Windows hosts, these are the same page, but are different pages on Unix hosts. JohnMu: Hi John, based on the ...


4

Two of the most widely used web servers have very different settings for case sensitivity of URLs by default. Whether or not your URLs are case sensitive is likely a function of which you are using: Microsoft IIS - case insensitive URLs - shows the same content regardless of capitalization. Apache HTTPD Server - case sensitive URLs - gives a 404 not ...


4

Google allows you to specify the canonical as an HTTP header. They give an example for canonicalizing one PDF file to another: Link: <http://www.example.com/downloads/white-paper.pdf>; rel="canonical" This page shows how to use .htaccess to put these headers in. It would be: RewriteRule ([^/]+)\.(pdf|doc|txt)$ - [E=FILENAME:$1] <FilesMatch ...


4

From the SEO prospective, i bet there might be a difference: In you first example, the ID is separated from the title, making it clear to the crawler it is a different resource (as the / character does it naturally). In your second example, the ID is mixed with the title. It requires more brains from the crawler to determine the meaning of it. Imagine ...


4

When you use 301 redirect, you show to Google that current page it's permanently moved to another url. Cannonical is used to prevent penalties by Google for duplicate content. When you use it, the current page exists but shows to google that is "copy" of another "master page" For example I can give you OpenCart product urls, they are like this: ...


3

For extracted content from a source, use this HTML: <blockquote cite="http://venue-website/venue-description-page" title="Published title, author, date"> Your extracted content </blockquote> The cite attribute for blockquote content was designed specifically for this use case in the DOM. Google wouldn't be doing their job properly if they ...


3

You could simple make a button/link with a text like "This site is in https, click here to view via https", maybe add a little warning "might not function 100%". Https Everywhere works with a whitelist. Can't find how-to real quick, but this rulsets page might help. I'm not aware of any preference or setting in the browser. You can't send a header "https, ...


3

You may run into issues with duplicate content. You probably do not want to create canonical tags when they are not necessary. Too much work. You can try a redirect: RewriteCond %{REMOTE_ADDR} ^123\.321\.123\.32$ [NC] RewriteRule ^(.*)$ http://site.com/$1 [R=301,L] Of course you can adjust this to suit your needs. Insert this into your .htaccess file. ...


3

This looks pretty spot on to me, apart from on the Spanish desktop site set, where there are quite a few errors. You are referencing the mobile version with the three rel="alternate" hreflang= tags, you should be referencing the desktop version. The canonical tag on the Spanish desktop is pointing to the English language page. If you need to set a ...


3

Your "SEO expert" might be a lying bastard, but this probably isn't the reason. He's absolutely right about this. This is a little known edge case in URL construction. RFC 3986 is the official definition of the URL format and rules on how to encode and decode URL. Any URL parser should be following this as closely as possible to avoid errors and be ...


2

I would carry on using pagination mark up on both sets of paginated pages. Google introduced the mark up for this specific purpose, it provides a hint to Google that you would like to treat the paginated pages as a logical sequence, thus consolidating their linking properties and usually sending searchers to the first page. If you noindex the paginated ...


2

Each URL on your site has its own PageRank. So http://example.com/?id=344 will have separate PageRank from http://example.com/ and both will have separate PageRank from http://example.com/page.html. In many cases a URL parameter will not cause the page shown to change, or will cause a 404 not found error. Either of those may cause the link juice ...


2

This is one way people canonicalise duplicate product pages on ecommerce and is a valid way to use it. As long as the content on the product page is identical, or a large part of the content is exact and appears on both pages. If the pages are not extremely close in exact words, the canonical designation might be disregarded by search engines. For the most ...


2

For SEO, I would say an id doesn't permit to easy remember the URL for users. Therefore, no matter on which URL you choose; an id in the middle or at the end of an URL doesn't change anything regarding SEO. However, an id in an URL can be very useful in case of you would have two pages with the same URL. This is the case for StackOverflow because the URL is ...


2

Google recognizes your URLs with parameters and as different because the id is different. I suppose that the product pages have not the same content; therefore, there is no duplicate content between your URLs; thus, you don't need to use the rel="canonical" tags between pages.


2

The source of your problem can be in html or in javascript, and you cannot control the links that other people put on the net too.. And because he finds a page when making a request for it, it indexes it. I miss some information to give answer with code (using a CMS? Other rules in .htaccess, etc…), but here are some ways : Write a permanent redirect in ...


2

The canonical tag is enough, as it lets Google know which page should be indexed. It is basically a way of saying "Hey, these pages are extremely similar. Here is the page that should take precedence." Preventing Google from crawling your mobile links will cause more harm than good. Example: If a mobile user shares a mobile link to your website, you don't ...


2

When you redirect your example.com to www.example.com, using a 301 redirect, all your existing link-juice will also transfer to the www version. But if you're going to redirect it using a 302, that may block link-juice from flowing to www version. So redirect your site without the www to the one with the www using a 301 redirect, and also put a canonical ...


2

You can do in different ways: Dedicate a page to Cheapest all inclusive resorts and differentiate content from the "parent" page. So, modify your copy (concentrate on the "cheapest" aspect instead of generic descriptions), use different images, etc. In that way, you don't need to point canonical to anywhere because you have different and specialized ...


2

What happens if your configuration will be detected by a search engine: Mixing canonical links and noindex will mostly lead to search engines ignoring your canonicals. This may lead to duplicate content issues if you also have canonicalized dynamic URLs or alike. Without the canonicals being respected properly the search engines will decide which url is ...


2

Duplicate content is no longer determined in a linear fashion. Today, duplicate content is determined using a semantic scoring method so that near duplicate content will still be seen as duplicate. This is because spammers would simply rearrange the content to avoid content as being flagged as duplicate. As well, n-gram phrase recognition is used to ...


2

There's nothing to worry about here, since http://example.com and http://example.com/ are the same URL. The useragent has to include a path in the HTTP request (as per RFC 2616), so what it sends to the server will be GET / in either case. If you add the verbose flag to CURL this is quite easy to verify: $ curl -v http://example.com * Rebuilt URL to: ...


2

We've recently had advice on best practice for a very similar structure. Canonical: Canonical shouldn't be shared across languages, but used within a language. For instance, your Masai homepage would have a canonical tag of: https://www.domain.com/mas But the canonical for your German homepage would be: https://www.domain.com/de x-default: ...


1

Canonical tags should be used on pages that have the exact, or very similar content. They are used to tell Google you realise you have two duplicate pages, but only count one. You shouldn't use them on pages where you are just trying to shift over relevancy, if they don't have very similar content, the tag may be ignored altogether.


1

The purpose of the canonical tag is to prevent that search engines consider the same page as two separate pages when using different URLS. For example: www.mysite.com/page/?ref=ad_platform1 www.mysite.com/page/?ref=ad_platform2 The ref parameter is used for analytics only. Without a canonical tag this could cause the search engine to to distribute ...


1

Placing a canonical link in RSS won't be effective. For a canonical link to work it must be in the <head> section of the document. The RSS feed would be rendered into the body of the document on another site. Google has been very clear on this point. They ensure that their implementation ignores canonical tags that are not in the proper place. ...


1

When you have the same content available at many different URLs, you can use URL canonicalization to tell which set of URLs are the preferred ones for search engines to crawl and index. Google introduced a link rel canonical meta tag for this purpose. Lets say that you want to make 500 photos per page the canonical URL. On the other URLs ...


1

products1.php simply needs to output the canonical link in the head section of the page. Presumably it knows the information needed to build your friendly URL: category subcategory product name product id Then the canonical tag appears in both the page for the friendly URL and the page for the parameterized URL. That is fine. Google says that a ...



Only top voted, non community-wiki answers of a minimum length are eligible