The correct way to rel=canonical
-
When adding the rel=canonical tag to a landing page inside a folder, should the tag read:
or
With or without the index.php?
TY
KJr
-
Thanks Gaston, I've heard it both ways
-
Hello Kevin,
It´s common to recommend avoiding the usage of /index.php.
My suggestion is to go with:
For further reading:
SEO Best Practices for Canonical URLs + the Rel=Canonical Tag - Whiteboard Friday
Consolidate duplicate URLs - Google Search Console HelpHope it helps.
Best luck.
GR.
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
-
What is the recommended canonical variation for a website now migrated to Https:?
We recently migrated our site to HTTPS:? In the past, we went with http://www. What is the recommended canonical variation corresponding to these changes? http:// http://www. https:// https://www. Thank you! Erin
On-Page Optimization | | HiddenPeak0 -
Best way to do a 301 redirect when the incorrect page has rank and FB likes
Due to a site structural problem with our CMS we have alot of duplicate content pages (1 page, with multiple urls). We are in the process of setting up 301 redirects to correct the problem. Meanwhile; one of the pages with the "incorrect" URL happens to be the page google favors and also has about 100 FB "likes". The question is: Are we better off keeping the "incorrect" URL for that particular page and redirect the other url to it? Both have a page rank of 3. Thanks
On-Page Optimization | | foodsleuth0 -
Using rel="author" on product descriptions
Unique and effective product descriptions can be one of the most expensive investments that go into building a retail website. I would consider them part of the "intellectual property" of a company. These descriptions are also one of the most often pirated types of content. Some product descriptions have been grabbed and used by hundreds of pirates. When people grab your product descriptions it creates a duplicate content problem, it also starts cutting off your long-tail traffic. The discussion topic here is.... Have you heard of anyone using rel="author" on product pages with substantive content? Do you think there is any value in doing that? Is this an abuse of rel="author" Thank you!
On-Page Optimization | | EGOL1 -
Rel canonical Issue
I have a huge rel canonical issue showing up on my website, and I'm not sure that I fully understand why. To my knowledge, this is something that comes about when alternate urls are used to link to the same page. However, this is not a technique that I've used with my website, yet it's still raising a flag on just about every page. http://bit.ly/jYyTYN Can anyone enlighten me on what's causing this? Thanks
On-Page Optimization | | JayAdams320 -
Do you use <nofollow>and rel=nofollow?</nofollow>
I just read http://www.thoughtmechanics.com/does-nofollow-attribute-work-google-says-yes-studies-say-otherwise/ . Is it really better to avoid using nofollow for local links (from one site to itself)?
On-Page Optimization | | fleetway0 -
Why is On-Page showing canonical wrong?
I'm trying to use the On-Page report card and it's saying that my rel=canonical is wrong, I've looked and I can't see anything wrong with it, am I missing something? The url is www.harrisonlighting.co.uk/childrens-lights.html
On-Page Optimization | | HarrisonLighting0 -
Almost all pages showing under Notices Rel Canonical - why???
Hi, I'm just going through my latest crawl since my new site launch and havce noticed almost all of my websites pages are listed under the notices rel canonical section, Why is this? All pages have the unique pages titles followed by the site name in the title, for example: Product | Site name All pages have unique meta descriptions and content (although we only offer lots of differt varients of the same product). Is this something I should be worried about?
On-Page Optimization | | EclipseLegal0 -
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?
On-Page Optimization | | wcksmith0