Canonical tag for home page
-
This question was asked before but I didn't see a clear answer to it. If I've got a site that has as it's home page: http://www.mysite.com/, and there are many references within the site back to the home page that point to /index.php, should I include a canonical tag in the index.php page like this:
to avoid a duplicate content issue, and to have all juice from both links combined into one?
-
Ryan is absolutely right.
also adjust your .htaccess to link to either index.html of mysite.com/
RewriteRule ^.*/index.html http://www.mysite.com [R=301,L]
Or
RewriteRule ^.*/ http://www.mysite.com/index.html [R=301,L]
Hope this helps
-
Yes
You should also adjust the links to reflect your preferred version of the URL.
I would always canonicalize the home page. You can also look at SEOmoz home page where they do as well.
<link rel="canonical" href="[http://www.seomoz.org/](view-source:http://www.seomoz.org/)" />
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
-
Updated page not ranking.
Hi Guys. Bit flummoxed by this. I've recently updated our Mid year diaries page to be this years mid year products. i.e) Diaries that go from 2015-16 not 2014-15. Last year we rank really well for the search term 'mid year diaries 14-15'. All i've done is update the page to be focused on 2015-16 diaries, but when i type in 'mid year diaries 15-16' it's no where to be seen in the SERP. Even our home page is ranking higher! I'm really puzzled about this, nothings changed apart from the year! The only reason I can think of is that Google is reading the file name of the images which are related to lasts years products? For example the file name might say mid year diary 2014-15. Do you think this is what's effecting us? Very puzzling 😕 I've submitted it through Webmaster tool btw 🙂 Isaac.
On-Page Optimization | | isaac6630 -
What to do about pages I have deleted?
I have been working through the dead links on my page and recreating the page with new content for those pages that it still makes sense to have on the site. But I have a few that were just changes of the title, spelling mistakes or other ways of saying the same thing In other words I created a page called "areas of the UK we cover" but decided to change it to "areas covered" However, I must have created links to this page and now it is a dead link with a page authority of 19 I think it would be spammy to have two pages, one called "areas covered" and the other called "areas of the UK we cover. It's not a disallow in Robots.txt because the page does not exist Please note I do not have access to the header to add code for a 301 redirect. I'm still using webs.com but not for new sites. I also have a page called singing telegrams london, that I changed from singagrams london. These are two words for the same thing but they are two very different keywords would it be ok to recreate this page and create content for singagrams london. Help is much appreciated
On-Page Optimization | | singingtelegramsuk0 -
How is this page ranking?
Hi. A client of mine is being outranked by a competitor whose landing page does not include the keyword within their page content AT ALL. Nor does their URL. Nor do any image alts. And their page title features the keyword in the middle of it, not at the start. Their link profile is not great with directories and the like. They are not socially active.. I am confused! I thought content on a page absolutely had to include the keyword to get ranked for it. Here's the page: www.springsoft.ie, keyword is "water softeners" Any thoughts I would appreciate. Many thanks.Christoffa
On-Page Optimization | | Christoffa0 -
Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice?
Hey guys! I was looking at adding the H1 tag lower on the page than the H2 tag because I want the top bit to be a call to action. Is this proper practice?
On-Page Optimization | | Web3Marketing870 -
How to add canonical tag
Hi, I read through many of the forum questions dealing with the overly dynamic URLS and I think I understand. Please let me know if I know what I am talking about: If SEO moz is saying I have 20 pages (mostly search and home/index pages) with overly dynamic urls, I would go to the that particular page and add the following code between the head tag: This code would cause Google to go to this page instead of the following duplicate index pages: 1. http://www.about-sports-collectibles.com/index.php?pcsid=0a83aa7119cf3d80a1d018634ec4ec94&p 2. http://www.about-sports-collectibles.com/index.php?pcsid=18b220fc62628b013a51c6f26209df50&p There are a total of about 8 of these index pages. The problem is that I can't figure out where I would access each of these duplicate pages to add the canonical tag. There is only one home page with coding. As far as the search pages are concerned, I would not want Google to follow those pages would I? If that is the case, what would be the best code to add between the tags? For instance here are a couple of the overly-dynamic URL pages for the search pages: 1. http://www.about-sports-collectibles.com/index.php?p=catalog&mode=search&search_in=all&search_str= 2. http://www.about-sports-collectibles.com/index.php?pcsid=50354d5791e627dc2be6c86528154a5e&p=catalog&mode=search I hope I am not overwhelming anyone with my questions. I really am trying to get a handle on how Ll this stuff works. Thanks so much the help. Don
On-Page Optimization | | ge01734001 -
Would I be safe canonicalizing comments pages on the first page?
We are building comment pages for an article site that live on a separate URL from the article (I know this is not ideal, but it is necessary). Each comments page will have a summary of the article at the top. Would I be safe using the first page of comments as the canonical URL for all subsequent comment pages? Or could I get away with using the actual article page as the canonical URL for all comment pages?
On-Page Optimization | | BostonWright0 -
Why some pages are not indexed?
I have a furniture´s ecommerce. When searching for "site: movstore.com.br" returned 1080 results, but if I search for "site: movstore.com.br / Product" returned 1020 results. I mean, that 1080 indexed pages, 1020 are products pages and the other 60 pages are irrelevant. Where are the category pages? "site: movstore.com.br / Categories" - 0 results
On-Page Optimization | | maisempresas
"site: movstore.com.br / Departments" - 0 results
"site: movstore.com.br / Marks" - 0 results What might be happening?0 -
Nofollowed internal links from the home page
Hi, I'm conducting an on-page review for someone and have noticed something I've not seen before. Some of the major internal links from the home page are marked as no follow. For example: <a <span="">href</a><a <span="">="</a>/customer-services" rel="nofollow">Customer Services This is on the top navigation bar and the content in this and all other sections are marked as no-follow but they should all be crawled. Is this an error or am I missing something? Any ideas guys? Thanks Bush
On-Page Optimization | | Bush_JSM1