Do I need both canonical meta tags AND 301 redirects?
-
I implemented a 301 redirect set to the "www" version in the .htaccess (apache server) file and my logs are DOWN 30-40%! I have to be doing something wrong!
AddType application/x-httpd-php .html .htm
RewriteCond %{HTTP_HOST} ^luckygemstones.com
RewriteRule (.*) http://www.luckygemstones.com/$1 [R=301,L]RewriteCond %{THE_REQUEST} ^./index.htm
RewriteRule ^(.)index.htm$ http://www.luckygemstones.com/$1 [R=301,L]IndexIgnore *
ErrorDocument 404 http://www.luckygemstones.com/page-not-found.htm
ErrorDocument 500 http://www.luckygemstones.com/internal-serv-error.htm
ErrorDocument 403 http://www.luckygemstones.com/forbidden-request.htm
ErrorDocument 401 http://www.luckygemstones.com/not-authorized.htmI've also started adding canoncial META's to EACH page:
I'm using HMTL 4.0 loose still--1000's of pages--painful to convert to HTML5 so I left the / off the tag so it would validate.
Am I doing something wrong?
Thanks, Kathleen
-
I wouldn't use both 301s and rel=canonicals for the same purpose. It's fine to have 301s to redirect non-www URLs, and then canonicals for other problems, but I wouldn't double them up for the same issue. The 301s are the proper solution here.
Your 301s don't seem to be triggering. Did you remove this code? Unfortunately, diagnosing someone's rewrites in .htaccess is incredibly difficult without direct access.
How does Google crawl your site? It looks like all of the products are only available by submitting a form (pulldowns). Google can't take that action, which could be causing major problems with your PageRank flow internally. You need paths that Google can use to reach the actual products. Honestly, form selects menus aren't typically a good solution for users, either.
-
Here's the entire contents of my .htaccess file:
AddType application/x-httpd-php .html .htm
RewriteCond %{HTTP_HOST} ^luckygemstones.com
RewriteRule (.*) http://www.luckygemstones.com/$1 [R=301,L]RewriteCond %{THE_REQUEST} ^.*/index.htm
RewriteRule ^(.*)index.htm$ http://www.luckygemstones.com/$1 [R=301,L]**IndexIgnore ***
ErrorDocument 404 http://www.luckygemstones.com/page-not-found.htm
ErrorDocument 500 http://www.luckygemstones.com/internal-serv-error.htm
ErrorDocument 403 http://www.luckygemstones.com/forbidden-request.htm
ErrorDocument 401 http://www.luckygemstones.com/not-authorized.htmFrankly, I'm not sure what all the flags on the Rewrite lines mean. I know when I updated the index.htm code I lost serious traffic--but without it I seem to have dup content issues. I would just LOVE to be done w/this once and for all--to know it's right would be huge!
Here's the canonical tag in the index.htm file:
Is anything amiss? I will say I had no dup content issues in this week's seomoz run but the loss of traffic means google isn't liking something...
Thanks for your help, Kathleen
-
Using the 301 redirect is the right and necessary thing to do, even if you are using canonical tags, Kathleen. They serve somewhat the same purpose on the home page, but the 301 is vastly more powerful to communicate to the search engines that the www version is your primary page.
You've got a bit of a problem with the canonical tag as you've listed ti though.
By doing the redirect, the canonical version of your home page is now www.luckygemstones.com But your canonical tag is declaring www.luckygemstones.com/index.htm which directly contradicts what you set above. For your home page, it should be
In addition, http://www.luckygemstones.com/index.htm should also be 301-redirecting to http://www.luckygemstones.com (another example of a different URL that applies to the same page). The htaccess you list has that redirect in place, but it doesn't seem to be working on the site - is that htaccess actually live as is?
Paul
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
-
Redirect 301 to homepage
Hello there, I have some low quality pages in my site, can I redirect 301 them to my homepage? My website is: https://idanito.com idanito.com
Technical SEO | | dannybaldwin0 -
"No Meta Description Tag"
Google is not showing Meta Description for the Keyword Rankings of my website in the SERPs. All of my Keywords Ranking are coming with just two fields. Which are just 1. Title Tag & 2. Page URL. The description tag is missing in it. Here is a proof Kindly advice please.
Technical SEO | | seobac1 -
Canonical Tags Before HTTPS MIgration
Hi Guys I previously asked a question that was helpfully answered on this forum, but I have just one last question to ask. I'm migrating a site tomorrow from http to https. My one question is that it was mentioned that I may need to "add canonical tags to the http pages, pointing to their https equivalent prior to putting the server level redirect in place. This is to ensure that you won't be causing yourself issues if the redirect fails for any reason." This is an e-commerce site with a number of links, is there a quick way of doing this? Many Thanks
Technical SEO | | ruislip180 -
Ranking for non-existing content which is 301 redirected
Hey there, In the beginning of this year I've made complete site migration from Dutch language to English. All the old Dutch URL's were 301 redirected to the English versions. I naturally lost rankings for all Dutch keywords during the next month. On the website there is no Dutch content anymore. But what happened now is that five months later the website started to rank for the Dutch keywords again. The page snippets in SERP are in English but the URL's shown are in Dutch (ending with .nl) and whenever a user clicks on the snippet he/she gets 301 to the correct English version. Any ideas what could be the reason for re-ranking of non-existing pages which gets 301 in SERP?
Technical SEO | | benesmartin0 -
301 redirect relative or absolute path?
Hello everyone, Recently we've changed the URL structure on our website, and of course we had to 301 redirect the old urls to the coresponding new ones. The way the technical guys did this is: "http://www.domain.com/old-url.html" 301 redirect to "/new-url.html"
Technical SEO | | Silviu
meaning as a relative redirect path, not an absolute one like this:
"http://www.domain.com/old-url.html" 301 redirect to "http://www.domain.com/new-url.html" This happened for few thousands urls, and the fact is the organic traffic dropped for those pages after this change. (no other changes were made on these pages and the new urls are as seo friendly as possible, A grade on On-Page Grader). The question is: does the relative redirect negatively affects seo, or it counts the same as an absolute path redirect? Thanks,
S.0 -
301 Redirect & re-use
I have an old site which is being moved to a new tld due to re-branding. I understand I would do a series of 301 redirects from the pages of the old site to capture the authority and move to the new site. However, at some point in the future (probably 1-2 years) we may want to re-use the old site again for a different brand (it has a good brand, just not for what we're going after). Question is - can a redirected site be re-used at some point in the future? And if so, which site would new authority (links, etc.) go to?
Technical SEO | | uwaim20120 -
Trailing Slashes In Url use Canonical Url or 301 Redirect?
I was thinking of using 301 redirects for trailing slahes to no trailing slashes for my urls. EG: www.url.com/page1/ 301 redirect to www.url.com/page1 Already got a redirect for non-www to www already. Just wondering in my case would it be best to continue using htacces for the trailing slash redirect or just go with Canonical URLs?
Technical SEO | | upick-1623910