CMS Development

DEsteva
Participant

Temporary Redirections and Multilanguage URLs

SOLVE

Hello guys, how are you?

 

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.

Anyway the tempory rediractions that has been created are the next ones (Example) as the inicial URLs is: https://contacto.driv.in/en-us/blog-subscribe?hsLang=en  to the original URLs: https://contacto.driv.in/en-us/blog-subscribe

 

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:

Screenshot 2024-08-05 at 13.22.41.pngScreenshot 2024-08-05 at 15.04.06.png



Does anyone knows or have idea how to optimize or correct those for the webcrawling?

 

Thanks! Best.

0 Upvotes
1 Accepted solution
Brenner
Solution
Recognized Expert

Temporary Redirections and Multilanguage URLs

SOLVE

Hey, @DEsteva ,

About Hubspot settings, you can check: 

 

Review Multilingual Settings in HubSpot:

  • Go to your HubSpot account and navigate to your website settings.
  • Check the settings for multilingual content to ensure they are configured correctly.
  • Make sure the primary language of the page is set correctly and that alternate language URLs are properly configured

You can see more here.

 

Set Canonical URLs:

  • 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.

More information about it here

 

Check and Update Links:

  • 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.

 

Example:

Given your initial and final URLs:

Ensure that:

  1. The button links directly to https://contacto.driv.in/en-us/blog-subscribe without the query parameter ?hsLang=en unless it is required for some functionality.
  2. If the query parameter is necessary, make sure the URL handling in HubSpot is set up to manage it correctly without triggering a temporary redirect.


Brenner Natal



HubSpot Consultant | Inbound Marketer



--------------------------------------------------


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! .



View solution in original post

2 Replies 2
DEsteva
Participant

Temporary Redirections and Multilanguage URLs

SOLVE

Hello Brenner!

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. 

 

  1. 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)
  2. On the picture, you can se the button inspection on console that adds the prefix "hslang=EN" generating an unnecessary temporary redirection.

 

Screenshot 2024-08-06 at 13.27.00.pngScreenshot 2024-08-06 at 13.27.12.png 

0 Upvotes
Brenner
Solution
Recognized Expert

Temporary Redirections and Multilanguage URLs

SOLVE

Hey, @DEsteva ,

About Hubspot settings, you can check: 

 

Review Multilingual Settings in HubSpot:

  • Go to your HubSpot account and navigate to your website settings.
  • Check the settings for multilingual content to ensure they are configured correctly.
  • Make sure the primary language of the page is set correctly and that alternate language URLs are properly configured

You can see more here.

 

Set Canonical URLs:

  • 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.

More information about it here

 

Check and Update Links:

  • 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.

 

Example:

Given your initial and final URLs:

Ensure that:

  1. The button links directly to https://contacto.driv.in/en-us/blog-subscribe without the query parameter ?hsLang=en unless it is required for some functionality.
  2. If the query parameter is necessary, make sure the URL handling in HubSpot is set up to manage it correctly without triggering a temporary redirect.


Brenner Natal



HubSpot Consultant | Inbound Marketer



--------------------------------------------------


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! .