301 Not Allowed...Other Solutions?
-
A client's site where both the www. and non-www. versions are both being indexed. The non-www. version have has roughly 1000 or so links where the www. version has over twice as much pointing back to the site. In addition, the www. version has higher domain authority.
Their programmer has suggested that they can't implement 301's permanent redirects across their site for a few reasons.
My question is, what would be the best alternative to block/redirect the non-www. version from being indexed yet still pass link-juice?
-
Hey James - I am curious as to why you think a 'canonical tag' wouldn't be a "long term fix"?
-
Thanks for the responses everyone. Everyone seems to be in agreement that a '301' is the proper course of action and should be explained that way.
I just have never run into a developer opposing the idea. So, thanks again for the feedback!
-
1st of all if the developer says he won't use the 301 then he's one very strange developer it's the basic of frontend development. But that being as it is, 301 is the best and most viable option but you do have a few other:
- tell GWT your prefered domain.
- have the devloper make a dynamic rel canonical, something like this (in php)
' ?>
in the above situation he of cause would have to make a function called checkURL to test for if the url begins with http://www and returns the right formatted version. and tell GWT what domain you prefer.
But again the only right way is a 301 and it's ridiculously simple to make.
-
If you properly communicate why 301 Redirects are the only proper solution, and you continue to run up against a dev who makes up pie in the sky technical "reasons" why they can't, then the question is whether they respect you enough, put enough value in your view, recommendation.
Setting that aside, the canonical tag, coupled with going into Google Webmaster Tools and setting the www version as the preferred version will help, but as has been pointed out, not in anything close to resembling an ideal way.
For long term sanity, I highly recommend you explore why you're getting the resistence. Is it because the dev feels threatened, or doesn't want to do the work? Setting up server-wide 301 Redirects is NOT that difficult or time consuming for anyone who knows what they're doing. So you may want to provide them links to the "how-to" for their particular server configuration.
If they are lazy, you'll need to find a way to show the decision maker(s) that failing to implement them is costing the company revenue.
-
My Advice is to make a deck/ business case for the programmer show him the problems with having two versions of the website indexed. I have encountered a few developers who are not really in tune with the whole issues around duplicate content and SEO. I think the best idea is to act on the same page, show the developer some respect, show him the design is good but then also educate him about SEO.
If you do a cononical tag, sorry to say but it is not going to be a long term fix, it will just be a short term fix.
Try and push for the 301's.
-
I have never encountered a developer who resisted using a redirect for the non-www URLs to the www form. If you have access to the server, the change should be able to be made.
If you decide not to use a 301,use a canonical tag to identify the correct version of the page. I would also use both Google and Bing Webmaster Tools to indicate which URL format you wish to use.
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
-
301 Redirects... Redirect all content at once or in increments?
Hello, I have been reading a lot about site migration and 301s and sometimes get confused with conflicting suggestions from different sources... So, in a site migration. Should I 301 redirect all old URLs to the news at once or little by little? I've see this Google handout that suggests doing it all at once (minute 13)
Intermediate & Advanced SEO | | Koki.Mourao
https://plus.google.com/u/0/events/cfco632lor7bl55j3tg1g8332l0 But also have read the opposite in other forums...0 -
How long should I keep the 301 redirect file
We've setup an new site and many pages don't exist anymore (clean up done). But for many of them we have new pages with new url's. We've monitored the 404 and have now many URL's redirected with 301 (apache file). How long should we keep this in place? Checking all links manually to see of new url is in place of the old url (in google) is too much work. tx!
Intermediate & Advanced SEO | | KBC0 -
Tricky 301 question
A friend has relaunched a website but his web guys (he didn't consult me!) didn't do any 301s and now traffic unsurprisingly has tanked. The old site and database no longer exists and there are now 2000+ 404's. Any ideas how to do the 301s from old urls to new product urls WITHOUT it being a massive manual job?
Intermediate & Advanced SEO | | AndyMacLean0 -
301 Directs
We have found a lot of 404 error pages that we have transferred with 301 directs. My questions is, should these 301 directs be marked as a NF (nofollow)?
Intermediate & Advanced SEO | | Essential-Pest0 -
301 Pandalized Domain to Authority Domain?
Hello, If I redirect a Panda penalized domain (DA 65, bad link profile) to another authority domain (DA 35, clean link profile), will it still carry a penalty? I've heard cases where a panda penalized domain moved to a brand new domain carried the penalty.
Intermediate & Advanced SEO | | mashoid0 -
Big 301 Redirect Help!
Hey guys I need a little help with setting up a big 301. Background: It's a bit of a mess as the old site is a total mess after being online for 10 years plus. It has html and php pages, and a mod rewrite to redirect old html links to the newer php version of those pages. It's now moving to a new site and as the domain name and URL structure has changed we can't use any fancy regex and have to do a page to page redirect. There are 1500 pages to redirect. However, the old site has thousands of linking root domains, and some of these are to the old html pages (which currently redirect to the php pages) and some to the newer php pages. Question: My initial plan was to leave the mod rewrite and only redirect the php pages. That means 1500 individual redirects instead of 3000 if I individually redirect both the php and html pages. I'm not sure what's best to be honest. We don't really want multiple hops in the redirect (html>php>new site), but surely 1500 redirects is better than 3000! Does anyone have any advice on which option may be best, or even a better option? Thanks 🙂
Intermediate & Advanced SEO | | HarveyP0 -
301 Redirect and Webmaster Central
I've been working on removing canonical issues. My host is Apache. Is this the correct code for my htaccess? RewriteEngine On
Intermediate & Advanced SEO | | spkcp111
RewriteCond %{HTTP_HOST} ^luckygemstones.com$ [NC]
RewriteRule ^(.*)$ http://www.luckygemstones.com/$1 [R=301,L] SECOND!!! I have two websites under Google's Webmaster Central; http://luckygemstones.com which gets NO 404 soft errors... AND http://www.luckygemstones.com which has 247 soft 404 errors... I think I should DELETE the http://luckygemstones.com site from Webmaster Central--the 301 redirect handles the"www" thing. Is this correct? I hate to hose things (even worse?) Help! Kathleen0 -
Cannot 301 redirect, alternatives?
Hi, the company has changed it's name so now under a different domain. All pages have been 301 redirected on a 1:1 basis apart from the home page. For some reason IT cannot 301 redirect the old home page to the new website home page. At suggestions? Perhaps canonical it? Meantime the old home page copy has been changed to say the company name has changed and a link to the new website. Any help greatly appreciated.
Intermediate & Advanced SEO | | Richard5550