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
-
Canonical in Shop Areas of an E-commerce Site. When and Where?
Hi Guys. A quick one about duplicate content... So we have a lot of pages that are very similar on our site, but are actually different products. e.g) Our Fortnight view refills and our week to view refills. Our MOZ report defines this as duplicate content. Question: Would a canonical tag be the way to go to 'remove' this duplicate content? And if so, which page should it point back to? Just picking one of the products? Or the higher level Landing page? Many thanks in advance... Isaac.
On-Page Optimization | | isaac6630 -
Best way to separate blogs, media coverage, and press releases on WordPress?
I'm curious what some of your thoughts are on the best way to handle the separation of blog posts, from press releases stories, from media coverage. With 1 WordPress installation, we're obviously utilizing the Posts for these types of content. It seems obvious to put press releases into a "press release" category and media coverage into a "media coverage" category.... but then what about blog posts? We could put blog posts into a "blog" category, but I hate that. And what about actual blog categories? I tried making sub-categories for the blog category which seemed like it was going to work, until the breadcrumbs looked all crazy. Example: Homepage > Blog > Blog > Sub-Category Homepage = http://www.example.com First 'Blog' = http://www.example.com/blog Second 'Blog' = http://www.example.com/category/blog Sub-Category = http://www.example.com/category/blog/sub-category This just doesn't seem very clean and I feel like there has to be a better solution to this. What about post types? I've never really worked with them. Is that the solution to my woes? All suggestions are welcome! EDIT: I should add that we would like the URL to contain /blog/ for blog posts /media-coverage/ for media coverage, and /press-releases/ for press releases. For blog posts, we don't want the sub-category to be in the URL.
On-Page Optimization | | Philip-DiPatrizio0 -
Experiences with pagination rel=next and prev
I have read about people saying that using the rel next and prev tags did not take any positive effect on their sites... In my case I do not have a typical pagination 1,2,3 but a site about tours in the amazon where each tour-description is divided into a page with an overview, itinerary, Dates & Prices so instead of Site 1,2,3 Buttons I have the Btns: Tour Overview, Itinerary, Prices So as all the of pages belong together I thought the rel=next & prev tags will be useful.
On-Page Optimization | | inlinear
Also I want to avoid duplicate content when the page title of the three is pretty similar. Right now the Title is like this:
Amazon Tour XXX YYYY
Amazon Tour XXX - itinerary
Amazon Tour XXX - prices The description text is more different... Is this the best practice in my case? Thanks for all your opinions! 🙂 best regards,
Holger0 -
Is Rel=Canonical the answer???
Hey Mozzers, Can you help me with something please. I have some important content going live next week for a client. We work on there blog optimisation and this piece of content is going live on both the blog and parent site. The parent site has huge DA in comparions to the blog. I want to get the traffic directed to the blog and get the blog ranking - bare in mind the content is exactly the same so it is dupe. If I want to get the blog ranking above the parent site and to direct the traffic here is a cross domain Rel=Canonical the answer? Has anyone else had this issue? Thanks Bush
On-Page Optimization | | Bush_JSM0 -
What is the best way to have two online stores, each focusing on a specific country?
The dilemma here of course is that the stores will be very similar in content, with the domains only being different in that the store targeting the US will be a .com domain and the Canadian store is a .ca domain.
On-Page Optimization | | absoauto0 -
Have you been outranked by a page that is inferior in every way imaginable?
Has this ever happened to you? You create an amazing piece of content to rank for a keyword phrase that you are targeting. The content is way better than your competitor's page but they are outranking you. You have a higher domain authority.
On-Page Optimization | | ProjectLabs
Your page has a higher page authority.
Your page and site has higher toolbar Page Rank.
Your page has more inbound links.
Your page has higher quality links.
You have more Twitter, Facebook, and Google plus shares.
etc., etc. But still you are being unranked and you can't find a single factor where your competitor is better. What can you do?0 -
Rel Canonical - Could someone please help confirm something?
Morning Mozzers, I'm looking at a site (www.zitan.co.uk) and making a few recommendations for SEO, one of the things I've spotted is something weird with rel canonical. It looks (to me) as if they've got almost every single page set with this tag: rel="canonical" href="http://www.zitan.co.uk" /> I'm 99% certain that this means that every page on the site (that has this tag) is pointing all link juice / authority back to the homepage? If someone could please check and just confirm that, I'd really appreciate it. Thanks in advance, James
On-Page Optimization | | JamesMio0 -
Google is indexing spam pages from my site. What is the most effective way to get ride of the search results? Pages are deleted now but should I do something more?
A long time ago I created a forum (Invision Power Board) and it got full of spam. Massive amounts! /forum/ I've now deleted the forum but the spam pages are still indexed on Google. Can I do something else to hurry up the process to get ride of them?
On-Page Optimization | | ocarlsson0