I'm working trough optimizing and checking the website redirections over SEMRush and i'm getting the warning that some URLs have temporary redirections created.
So as checking out the console and all the redirections generated, those are created at the moment of creating the multilingual variant of the webpage, even if the URLs that you use for the buttoms is the original URLs, as you can see on the next pictures:
Does anyone knows or have idea how to optimize or correct those for the webcrawling?
Ensure that canonical URLs are set correctly for each language variant of your pages. This helps search engines understand the preferred version of your pages.
You can set canonical URLs in the page settings or directly in the HTML of the page.
Ensure that the links on your website point directly to the final URL without triggering temporary redirects.
Use the original URLs in your buttons and internal links instead of those that cause temporary redirects.
Set Permanent Redirects (301 Redirects):
If there are URLs that should permanently redirect to another URL, make sure to set them as 301 redirects instead of 302. This informs search engines that the redirect is permanent.
Se a minha resposta te ajudou, por gentileza, clique no botão: " Aceitar como solução ". Ainda com dúvidas? Responda a minha postagem para que possamos continuar te ajudando! Obrigado por postar na comunidade da HubSpot! .
Thanks! I already check out the settings and canonicals URLs! But anyway it still creating the prefix "hs?*lang/" to the URLs. Even when the external link doesn't have it. As you can see on the pictures.
On the first picture you can see that the button "DEMO" is linkedin to: https://contacto.driv.in/en/demoweb as an external directly not like One of the Pages (linked with the Option "One of my pages" still happening the same thing)
On the picture, you can se the button inspection on console that adds the prefix "hslang=EN" generating an unnecessary temporary redirection.
Ensure that canonical URLs are set correctly for each language variant of your pages. This helps search engines understand the preferred version of your pages.
You can set canonical URLs in the page settings or directly in the HTML of the page.
Ensure that the links on your website point directly to the final URL without triggering temporary redirects.
Use the original URLs in your buttons and internal links instead of those that cause temporary redirects.
Set Permanent Redirects (301 Redirects):
If there are URLs that should permanently redirect to another URL, make sure to set them as 301 redirects instead of 302. This informs search engines that the redirect is permanent.
Se a minha resposta te ajudou, por gentileza, clique no botão: " Aceitar como solução ". Ainda com dúvidas? Responda a minha postagem para que possamos continuar te ajudando! Obrigado por postar na comunidade da HubSpot! .