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
-
Should you do on-page optimization for a page with rel=canonical tag?
If you ad a rel=canonical tag to a page, should you still optimize that page? I'm talking meta description, page title, etc.
On-Page Optimization | | marynau0 -
Need Suggestion for Canonical Page
Hello, I am bit confused about whether to use a Canonical URL on a page or not? Actually, the project I am working on is having two pages with most similar content. The only difference between them is that only 1 paragraph of 50-60 words is different. I am not sure, whether to put a canonical URL on the another version of the page. [Note: Sorry, can't put the site URL due to some restrictions.]
On-Page Optimization | | Anup_More0 -
What is the best way to optimize industries served pages?
eg. abcwidgets.com/industries/durable-goods What kind of keywords should pages like these target? Primary service offered + industry name or the reverse order? Something else? Thanks for your feedback!
On-Page Optimization | | benjdonahower0 -
Is there a way to measure a competitors content growth?
Bonjour from 23 Degrees C hot & sultry Wetherby UK, I find again and again clients find jumping into an active volcano easier than addid fresh content. I want to try another tactic to prompt / scare them into adding content and here is my idea. I want to track a competitor site for a target term and monitor if they are adding content over time specific to that term. So my question is please: "Is there a reliable method to do this?" Ideas i had was doing a good old Google Title operator at the beginning of the month and then at monthly intervals to see if anything changes. Any insights welcome 🙂
On-Page Optimization | | Nightwing0 -
What is the best way to handle e-commerce Product title names?
Hello, I'm having a little bit of a conundrum, and I'm hoping someone will be able to help! We have an ecommerce site, and were trying to figure out what is the most SEO friendly way to handle product titles. With our ecommerce software, it currently sets the Product title as the H1 tag (which could be changed if needed). In addition, the product title is what is used as anchor text for any built in links that the ecommerce software builds from the category pages, etc (just like any other ecommerce site). Here's where I'm stuck. I'm trying to determine if it makes sense to use the specific keyword we are aiming for as the product title, or to put variations of the title that would be more descriptive. Here is an example: We have a Wizard of Oz Dorothy Deluxe Girls Shoes. According to all accounts, the best keyword to attack for this would be "dorothy shoes". However, it loses the more accurate description of "Wizard of Oz Dorothy Deluxe Girl Shoes". But, my thinking is that the H1 tag and anchor text would make more sense to use the term "Dorothy Shoes". The title tag could go something like this: "Wizard of Oz Dorothy Deluxe Girls Shoes | Dorothy Shoes" In a situation like this, what do you think would be the "best" way to handle the title tag, product name, H1 tag, and anchor text? I'm sure there will be many different opinions, so I would like to hear what you think is best - and why.
On-Page Optimization | | clickshipcommerce0 -
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 -
Optimise duplicate products or canonical link
We exist in a niche market with a good % of products that sell well at specific times of the year. Lets say for example a red cup can be sold as a christmas red cup and a valentine red cup or just a red cup. Would we be best to optimize each specific product specifically for those seasons/events on different pages or keep google pointed to just one page using a canonical link.
On-Page Optimization | | LadyApollo0 -
See screenshot: Is this an example of Canonical issue or am I making an error in judgement?
Hi Mozzers. Please see the constructed screen grab from Open site explorer. Do I have canonical Errors with this client? Thanks! jX7X6.jpg
On-Page Optimization | | Giggy0