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
-
301 Redirects Backlinks?
I am wondering how many people still getting results from 301 redirects from high authority expired domains..? I read few case studies on detailed dot com where the shared some people still making big bucks from this strategy which i think 10beast also implemented few years back.? Is it worth it to test out 301 redirects to money sites.? How many people on the moz community here have implemented this strategy in practical and can share some insights and pros and cons of doing 301 redirects? Many Thanks.
Technical SEO | | asifseo0980 -
Is there anyway to automatically find complete urls for 301 redirects?
Hello all, I'm working on a large site that is being prepared for a migration. After scraping on screaming frog, WMT, and deepcrawl, and deduping I have a list of 404 pages that need redirected. Many of these URLs are just incomplete URLs. For example the incomplete URL would be: "https://moz.com/beginners-guide-to" when it should be "https://moz.com/beginners-guide-to-seo" I have been finding the correct page manually searching google. With hundreds more to go, I am looking for a way the would be a little less laborious. Thanks! https://moz.com/beginners-guide-to-seo
Technical SEO | | AdamBohr0 -
Canonical tag or 301
Hi, Our crawl report is showing duplicate content. some of the report I am clear about what to do but on others I am not. Some of the duplicate content arises with a 'theme=default' on the end of the URL. Is this version of a page necessary for people to see when they visit the site (like a theme=print page is) in which case I think we should use a canonical tag, or is it not necessary in which case we should use a 301? Thanks
Technical SEO | | Houses0 -
How do find where a 301 redirect is located
My report says I have http://www.30minuteseder.com/Passover.blog redirected to http://30minuteseder.com/Passover.blog. It is correct, but I can't find where the 301 redirect is located. I looked in my .htaccess file in the root and it's not there. How do I find it so I can change it?
Technical SEO | | Sederman0 -
Delete 301 redirected pages from server after redirect is in place?
Should I remove the redirected old pages from my site after the redirects are in place? Google is hating the redirects and we have tanked. I did over 50 redirects this week, consolidating content and making one great page our of 3-10 pages with very little content per page. But the old pages are still visible to google's bot. Also, I have not put a rel canonical to itself on the new pages. Is that necessary? Thanks! Jean
Technical SEO | | JeanYates0 -
302 or 301 redirect to https ?
I am redirecting whole site to https. Is there a difference between 302 or 301 redirect for seo? Site never been indexed. Planning to do that with .htaccess command RewriteCond %{HTTPS} !=on
Technical SEO | | Kotkov
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] There are plenty of ways http://www.askapache.com/htaccess/ssl-example-usage-in-htaccess.html Which way would be the best? Thanks is advance0 -
Google Webmaster redirect vs 301 redirect
OK assuming a client's website has the right tracking script (hopefully analytics isn't effected by this issue), ... what happens if the htaccess file has a 301 redirect to the www-address, but within Google Webmaster Tools, the address chosen to crawl by Google is the non-www address? How will Google handle and which address takes precedence in this situation? _Cindy
Technical SEO | | CeCeBar0 -
301 redirect dropped page rank
Hi, We have a www domain that I have changed to a non www domain. The www domain had been in place for some time and had a good page rank, PR4. After this change the page rank dropped significantly (PR0, and now recently back to PR2) despite it being a 301 redirect which I thought "should" carry over the page rank. Yes, I am aware I should have just left it be. Hind sight 20/20 .. ya ya ya 🙂 My questions Is the 301 the correct method for this? Why did the page rank drop despite the 301? Should we go back to the www domain at this point? Thanks Kris
Technical SEO | | adriot0