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
-
Should I do multiple 301 redirects?
We launched our website less than a year ago. We had another domain name and business name. I created 301s from the old domain to the new domain, that are still in place now. We are in the process of restructuring our current site which would result in pages getting a new title and URL to match. Essentially it would look something like this:
Web Design | | MAVENTRI
-- olddomain.com/page1 --> newdomain.com/page1 --> newdomain.com/newpage I recently checked the analytics and it looks like we are still getting traffic redirected from the old domain. What is the best way to handle these redirects? Should I redirect a redirect?0 -
Redirects Not Working / Issue with Duplicate Page Titles
Hi all We are being penalised on Webmaster Tools and Crawl Diagnostics for duplicate page titles and I'm not sure how to fix it.We recently switched from HTTP to HTTPS, but when we first switched over, we accidentally set a permanent redirect from HTTPS to HTTP for a week or so(!).We now have a permanent redirect going the other way, HTTP to HTTPS, and we also have canonical tags in place to redirect to HTTPS.Unfortunately, it seems that because of this short time with the permanent redirect the wrong way round, Google is confused as sees our http and https sites as duplicate content.Is there any way to get Google to recognise this new (correct) permanent redirect and completely forget the old (incorrect) one?Any ideas welcome!
Web Design | | HireSpace0 -
Is it necessary to Remove 301 redirects from Wordpress after removing the 404 url from Google Webmaster?
There were many 404 urls in my site found by Google Webmaster. I've redirected these urls to the relevant urls with 301 redirect in wordpress. After that I removed these 404 urls from Google Index through Webmaster. "Should I cleanup these 301 redirects from Wordpress or not? ". Help Needed.
Web Design | | SangeetaC0 -
Should I create a microsite or will 301 be sufficient?
We have a client http://www.shedfinders.com/, new site and we are slowly building DA & PA for. However they have another domain industrialpropertyscotland (one of the keywords they want to rank for) Should we create a little microsite attached to the main site - Say "Your guide to buying industrial property in Scotland" or should we just stick to a 301 redirect and keep working on the main Shedfinders site? Thanks, Laura
Web Design | | lauratagdigital0 -
Redirecting Images
Hi, I'm wondering how important it is when relaunching a site on a new platform (switching to Drupal) to serve up images from the same file paths in order to ensure consistency during the changeover. I've tried to keep the questions straightforward so that this post can be useful to people in a similar situation in future: How much difference do the file paths make to SEO? Does Google care or even notice if the image file paths change? Is it worth forcing Drupal to mimic our old file paths for the sake of consistency with the old site in order to maintain rankings OR do we take the opportunity to redesign our file paths for better SEO? Any help would be much appreciated 🙂
Web Design | | Tinhat0 -
Redirection Of Mobile Traffic
Hi, I hope someone can help me with this, we have been working on creating a mobile version of our website, but does anyone know of a way of ensuring that mobile traffic is redirect to our mobile version, ie m.mydomain.com Thanks Rich
Web Design | | mos_rich0 -
Optimal redirect configuration from a misspelled domain that we own.
We have a handful of inbound links to www.t-chek.com (note the hyphen). Our normal site is www.tchek.com (no hyphen). We own both domains and have some sort of domain-wide redirect set up now. This works fine for traffic, but I suspect it's not optimal for SEO purposes. I came to this conclusion by looking in OSE and noticing that none of the inbound links to www.t-chek.com were also being attributed to www.tchek.com. 2 questions: Is it immediately evident what type of redirect I have in place now, or do I need to figure that out? Is the fix as simple as editing the .htaccess file on the hyphenated domain? I don't have direct control over the hyphenated domain, and I'd like to be able to know exactly what we need to do so I can request help from my IT department. I'd appreciate hearing your wisdom. Thanks!
Web Design | | SheriGolla0