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.
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
-
Redirection Problem
Wondering if anyone could offer some tips here please. I cannot share the site name so will try and be as detailed as possible. My client had their site on a .com domain and have decided to move to a co.uk domain. The new site has been put on the uk domain with more or less the same structure, save for pages which have been removed or merged. I am now setting up 301 redirects to tell the engines about the moved site, however this is giving me no end of grief. I can get domain.com to redirect to domain.co.uk no problems, however, if I try and redirect any of the inner pages to their new locations they all end up on the .co.uk home not where they should be. Given the homepage isn't designed to rank for all the terms. The htaccess I am using is below, I cannot see anything wrong with it, can anyone else? Redirect 301 / http://newdomain.co.uk/
Web Design | | carl_daedricdigital
Redirect 301 /villa_rental.php http://newdomain.co.uk/villa_rental.html
Redirect 301 /new_home.php http://newdomain.co.uk/new_home.html
Redirect 301 /http://newdomain.com/villas.php http://newdomain.co.uk/villastyles.html
Redirect 301 /developments.php http://newdomain.co.uk/developments.html
Redirect 301 /solana_hills.php http://newdomain.co.uk/solana_hills.html
Redirect 301 /middle_east.php http://newdomain.co.uk/middle_east.html
Redirect 301 /denia.php http://newdomain.co.uk/denia.html
Redirect 301 /faq.php http://newdomain.co.uk/faq.html I have tried both relative and full paths for the old site but doesn't make any difference. Does it matter the old site is php and the new html? many thanks0 -
How to rewrite/redirect a folder name with .htaccess
I have a folder in my site that I want to rename. I don’t want to just rewrite the URL and keep my old folder name, I want to change the folder name and then do whatever is necessary with .hataccess to not lose search engine rankings. The folder name I want to change has a space in it and also is misspelled (whoops x2) Example. Mysite.com/old foldr/page.html Mysite.com/newfolder/page.html How would I go about doing this with .htaccess? Do I just switch the folder name on my server and then set up a redirect, or do I do a rewrite? Sorry now familiar with the terms or .htacces. Thanks all
Web Design | | SheffieldMarketing0 -
301 Redirect from Old Domain to New Domain
I am building a new website and I plan to 301 Redirect my Old Domain (olddomain.com) to a brand new Domain (newdomain.com) in the upcoming months. To do this I was planning to update the htaccess file on both the old and new domains. The htaccess file on the old domain would look to 301 redirect all pages on the old domain to the new domain. The htaccess file on the new domain would detail any specific URL redirects I want to implement (ie. olddomain.com/EXAMPLE/TEST will redirect to newdomain/TEST) - this will ensure link equity is retained and bounce rates are kept at a lower level. Does this sound like the right approach? Also, what do I need to do with the old domain going forward? Do I need to keep this forever in order for the 301 redirect to work or can I eventually just forward the domain to the new one permanently?
Web Design | | DHS_SH0 -
Is it possible to redirect the main www. domain - but keep a subdomain active?
Hi Mozzers, Quick question, which I hope one of you can answer... Let's say I have a website (i) www.example.com and on that a subdomain exists, (ii) subdomain.example.com. Let's say I want to change my main domain from www.example.com to www.newwebsite.com. I'd 301 all content, use GWT to notify Google of a change of address etc etc. Having done that, is it still possible to keep the original subdomain active? So, even though www.example.com has been redirected / transferred to www.newwebsite.com, subdomain.example.com would still exist. If that is possible, what is the implication for Domain Authority? On the one hand, I have transferred the main site (so DA from that will transfer to the new site); but part of that root domain is still active. Make sense? Any answers? Thanks everyone...
Web Design | | edlondon0 -
How do I move a 200+ website properly with 301 redirect?
I tried to search for the answer but didnt find any direct answers. I need to move a 200+ site to a wordpress site. How am I suppose to 301 redirect all of them? Do I need to create the new pages first then have webmaster use ssh and 301 the entire list? Can anyone link me to a 1,2,3 step instructions for a huge website move? Im sure there are other issues that I need to know about.
Web Design | | bryonstout0 -
Using a 301 vs. 302?
I'm running into a very confusing situation - and while I think I've worked through the answer, I'm hoping someone can help provide their insight. I have a client who is in the process of rolling out a responsive site. Because we need to host both Responsive and legacy versions of product pages on the domain we are using the following URL pattern. New Responsive Product Page exampleurl.com/product (existing URL structure) Older Product Pages (redirected to) exampleurl.com/legacy/product The rollout will be approximately 2 months to complete. The question becomes - should a 302 redirect be applied from the existing URl to the /legacy/ URLs until the new designs are launched? Given that the timing will be so short this seems reasonable. Or should a 301 be applied until the new responsive designs are rolled out?
Web Design | | JonClark150 -
What is the code to 301 http to www in htaccess file on unix server
i want to 301 my http home page to www on a linux server and all my other redirects are set up similar to this in my htaccess file: redirect 301 /example-page.html http://www.example-page.html how do I 301 redirect: http://example.com to http://www.example.com I've tried all kinds of code recommended for an htaccess file on a linux server and nothing seems to work. Thanks for the help mozzers! Ron
Web Design | | Ron100 -
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