302 redirects, canonicalise or redirect (301)?
-
Hey Guys,
I am fairly new to 'technical' SEO as I was lucky enough in my old role to have technical expertise in the team for things like this, now I am learning myself and it is a slow and painful process, so your expertise is soooo much appreciated! My I.T. dept say that I have 3 instances on my website where the Hybris platform is creating a 302 redirect automatically - the first:
- URL doesn't exist - Hybris creates a temp 302 - the system does not create case sensitive url's
| http://www.example.fr/Example/Marques/0180/brand/CHANEL | URL doesn't exist | TRUE | 302 |
| http://www.example.fr/Example/Marques/0015/brand/Giorgio-Armani | URL doesn't exist | TRUE | 302 |
| http://www.example.fr/fr/Example/marken/0507/brand/lancome | URL doesn't exist | TRUE | 302 |I believe these are being redirected due to the fact that capital letters are being created in the url.
- Multi-lingual redirects
I have a German and French version of my site and whenever any switches from one URL to the other using our language selector a 302 is created.
- Dynamic URL elements
Dynamic url elements and special characters are being created in the URL, I am not sure where this is happening, but my I.T. department would like me to go and see whether this is something that can be created by a browser.
If anyone has any similar problems or have any advice or insights even, I would love to hear from you! Thanks
-
Thank you Ethan, Yes I will recommend a 301 redirect to the I.T. guys, but I do think that my I.T. guys wont like me much
Please can I ask - why would I need to create more content to canonicalise it if I already have two url's? Would I not just add code to both pages?
If the page 1 url exists and temp redirects it to the page 2 url, would I not just add code to both pages? Or if I add code to the page 1 url, would it be exactly the same to the other variations?
Please teach me this as I will need to explain it to the I.T. dept as this was there recommendations. I think I will most definitely need tech help moving forward!
Thanks a lot for your time!
-
Thanks Patrick,
This is indeed helpful. I have read these links; SO:
-
Redirects should be 301.
-
I need to add href lang tags (for google and bing) on my website and I need to look more into geo targeting in more detail.
- Do you recommend I need to find out why these urls are being created? and yes this has also crossed over with the duplicate content project we are running too. But 301's are a solution until I figure out why these url's are being created so we can get it fixed.
I will check the sitemap today.
Thanks for your advice
-
-
Hi there
I recommend learning the best practices for redirects, as well as hreflang attributes and language tags - you should also read into country targeting your sites in Google and Bing - this is a big deal for international SEO and targeting.
I would also look into your dynamic URLs by reading through this resource from Google on potential duplicate content - this will help you categorize and manage your URLs, helping Google understand their purpose. You should also check your internal links and sitemap to make sure that there are not dynamic URLs listed there.
This will require your web development team as well, so make sure they read and understand these resources, both for current and future situations. Some of this has the tendency to get pretty technical and indepth so if you need help, know that Moz has a fantastic Recommended Companies page to help.
That being said, 301 redirects are preferred by search engines, 302s passes 0% link juice and most cases should not be used, and all URLs (and their dynamic variations) should have a canonical tag to the preferred URL.
Hope this helps! Good luck!
-
Do a 301, there's no need to create more content just to canonicalize it. 302's aren't too bad, but the permanent redirect is best practice.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
I have a site that has a 302 redirect loop on the home page (www.oncologynurseadvisor.com) i
i am trying to do an audit on it using screaming frog and the 302 stops it. My dev team says it is to discourage Non Human Traffic and that the bots will not see it. Is there any way around this or what can I tell the dev team that shows them it is not working as they state.
Web Design | | HayMktVT0 -
We're considering making notable changes to our website's navigation. Other than 301 redirects from old pages to new, what do I need to consider with this type of move or update?
We would like to make some navigation changes to our website: www.NetGainIT.com, specifically to the services section. I know that I will need a list of 301 redirects if I do not plan on keeping certain pages, but what else do I need to consider?
Web Design | | NetGainTech0 -
Website Redesign - What to do with old 301 URLs?
My current site is on wordpress. We are currently designing a new wordpress site, with the same URLs. Our current approach is to go into the server, delete the current website files and ad the new website files. My current site has old urls which are 301 redirected to current urls. Here is my question. In the current redesign process, do i need to create pages for old the 301 redirected urls so that we do not lose them in the launch of the new site? or is the 301 command currently existing outside of our server so this does not matter? Thank you in advance.
Web Design | | CamiloSC0 -
What should I know about redirecting users based on cookies?
Hi Moz! My client wants to redirect users to a basic or professional version of their site based on cookies. What do we need to do/know to make sure implementation is SEO-friendly? What if a user has cookies turned off? Are there any other obstacles? Thanks for reading!
Web Design | | DA20130 -
How to setup a redirect from one subfolder to another to avoid duplicate content.
Hello All, I have a WordPress site that Moz says has duplicate content. http://deltaforcepi.com/latest-news/page/3
Web Design | | Michael_Rock
http://deltaforcepi.com/category/latest-news/page/3 So I set up an addition to the .htaccess file . . . redirect code to move from one folder to another RewriteRule ^category/latest-news/(.*)$ /latest-news/$1 [R=301,NC,L] What did I do wrong? I am not proficient in .htaccess files.0 -
Is it better to redirect a url or set up a landing page for a new site?
Hi, One of our clients has got a new website but is still getting quite a lot of traffic to her old site which has a page authority of 30 on the home page and has about 20 external backlinks. It's on a different hosting package so a different C block but I was wondering if anyone could advise if it would be better to simply redirect this page to the new site or set up a landing page on this domain simply saying "Site has moved, you can now find us here..." sort of idea. Any advice would be much appreciated Thanks
Web Design | | Will_Craig0 -
Redirects (301/302) versus errors (404)
I am not able to convincingly decide between using redirects versus using 404 errors. People are giving varied opinions. Here are my cases 1. Coding errors - we put out a bad link a. Some people are saying redirect to home page; the user at least has something to do PLUS more importantly it does NOT hurt your SEO ranking. b. Counter - the page ain't there. Return 404 2. Product removed - link1 to product 1 was out there. We removed product1; so link1 is also gone. It is either lying in people's bookmarks, OR because of coding errors we left it hanging out at some places on our site.
Web Design | | proptiger0 -
Is it necessary to redirect every Error page (404 or 500) found?
If I have Hundreds of pages with 404 and 500 erros should set up 301 redirects for all of them? Some of the pages have external links, some don't.
Web Design | | jmansd0