標題: The fact that you leave [打印本頁] 作者: fahimfoysal03 時間: 2024-2-24 13:56 標題: The fact that you leave Field. “canonical” field highlighted Other Ways to Specify Canonical URLs Typically, you specify preferences for canonical URLs using canonical tags. But there are other methods you can try: Use rel="canonical" in HTTP headers (ideal for non-HTML documents) Redirect duplicate pages to canonical pages (great for duplicate pages you don't need to keep) List canonical URLs only in your sitemap (best practice for all site owners) Knowing what type of canonicalization to use gives you control over how your site appears on Google.
This also helps avoid issues with duplicate content. Let's look at these Jiangxi Mobile Number Listdeduplication methods in more detail. Use rel=“canonical” in HTTP Headers The rel="canonical" HTTP header allows you to specify a canonical URL for non-HTML documents. For example, if you have a .docx and a .pdf version of the same document online, you can use this method to indicate your preferred version. However, you must be able to modify your server configuration. In the .htaccess file, specify a canonical URL by adding code that looks like this: Redirect Duplicate Pages to Canonical Pages URL redirects send Google (and users) from one page to another.
Redirection is the best deduplication method if you don't need to keep alternate versions of the page. But you don't want to remove URLs completely. For example, when you have HTTP and HTTPS versions of the same page. Google prefers HTTPS versions. It is therefore good for your SEO to redirect the HTTP version to the HTTPS version. Google recommends using 3xx redirects (server-side redirects) for the fastest results. This includes the 301 redirect, which you can learn about in our guide to 301 redirects . List Only Canonical URLs in Your Sitemap “All pages listed in a sitemap are suggested as canonical,” according to Google . This means it's best to only submit canonical URLs (and non-duplicate pages) in your sitemap .