1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Since your website can be accessed by multiple urls, you need to tell the search engine which URL is the canonical URL. One way to do it is to add a link tag in your pages <head> to point to the canonical url.
example: <link rel="canonical" href="https://docs.cavalry.scenegroup.co" />
More info can be here: https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls
Contenus pertinents
- demandé il y a un an
- demandé il y a 9 mois
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
Thanks Mohamed. When I do a URL inspection in Google Search the Amplify link is the 'User-declared canonical'. I have not explicitly/ intentionally declared this so was hoping there might be something in the Console to allow me to specify this (e.g. it seems AWS is setting it). This site is for documentation so we've got 100s of pages - I'm hoping not to need to do this for each page individually!
I inspected your website and see that you have <link data-react-helmet="true" rel="canonical" href="https://main.d1fnr9j76bdr39.amplifyapp.com/"> in your website. You need to edit that.
I am not a Docusaurus expert but I think you are defining the url https://main.d1fnr9j76bdr39.amplifyapp.com somewhere in your config, and Docusaurus is automatically injecting the canonical tag link for you https://docusaurus.io/docs/next/seo#single-page-metadata