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
-
When making content pages to a specific page; should you index it straight away in GSC or let Google crawl it naturally?
When making content pages to a specific page; should you index it straight away in GSC or let Google crawl it naturally?
On-Page Optimization | | Jacksons_Fencing0 -
What is the best use of canonical ref on home (default/index) page?
Moz reports show duplicate content for my www.domain.com and www.domain.com/default.html How do I format the canonical ref to put on the default.html page?
On-Page Optimization | | bhsiao0 -
Reducing multi-page website to one page & SEO ramifications?
Hello there! I just want to check in before I do this. I am reducing a multi-page website to one page (temporarily, but for at least 4-6 months). I will be 301 redirecting all old pages to the one, new home page. The new home page has a lot more content, long and short keyword phrases. Aside from losing the benefit of internal links, will reducing the number of website pages hurt a ranking? Does having associated keywords on other website pages provide benefit to another (in this case Home) page? Thanks so much for your invaluable advice!
On-Page Optimization | | lulu710 -
Schema Review Not Showing Up For The Home Page
I have a schema review for an attorney website. The schema shows up in the SERPs for all the inner pages of the sites but never for the homepage. Is there a reason for that?
On-Page Optimization | | Armen-SEO0 -
Fixed horrible title tag on home page, and lost ranking. Will it come back?
I was helping out someone on their site and its home page ranked on page 2 for their term, and the title tag was horrible. It was 160 characters long with lots of near repetitive keywords ([keyword] - adjective [keyword] - adjective [keyword] - adjective [keyword] etc.) -- typical title that Google would penalize when it got around to it. So I created a title that made sense, for the keyword, and that followed the best practices of Google recommendations. Now it's dropped off the index. (EDIT: sorry, still in index, just not even in top 1000) Is this something I should not have done? I was just trying to keep them from getting slammed. And, how long should I expect it to take to get my ranking back? This is the only page title I changed.
On-Page Optimization | | bizzer0 -
Rel canonical tag question
Im trying to to fix my duplicate content problem with my catagory pages in my shopping cart. I have read about adding a rel canonical tag to the page so it links back to the main catagory page. So if I add a rel canonical tag to the main catagory page it will show up on every other page for that catagory like page 1 page 2 and so on and it will have the tag linking back to the main cat. That should fix it it right? Now that being said I cant seem to add the tag invetween the head tags. I can add it to the body where I can add content. Will the rel canonical tag work outside the head tags? Any other ideas on this fix? I contacted my people that host the cart to see if they have any features to help this will see what they say.
On-Page Optimization | | Dataken0 -
On page links?
Hi all, Ive be going through the pages in my site getting rid of errors so i can the work of a clean slate and get the best for my site. However, i have a large amount of pages which is flagged up by seo moz pro tool as too many on page links. How bad is this in terms of seo rankings? Thanks
On-Page Optimization | | wazza19850