Does it matter if a rel = "canonical" element is added to the beginning or the end of a URL?
-
I am curious to know if adding a rel = "canonical" tag to the end of a link element will affect its purpose?
-
It doesn't matter at all.. in my opinion and would be shocked to find im wrong...
easy test... add ALT element to any picture.. .before and after SRC... if it works properly in both situation, the same should be with rel canonical...
if you are still wondering about proper use.. always you can validate your document on W3C.org... it would point it out I guess.
-
I have only ever seen it used in the first format in ninjamarketers post and when it is recommended as a course of action on SEO sites and in SEO books it is also in that format.
-
Not exactly sure if this is what you are talking about.
rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/>
AND
rel="canonical"/>
is the same.
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
-
Using the Same Word in Every URL
Just looking to get some opinions on this. Some coupon sites use "coupon" in all of their URLs - this is a practice I would avoid, as to me it is a little spammy. For example:
On-Page Optimization | | vanessakohl
.com/amazon-coupons/
.com/ebay-coupons/
.com/walmart-coupons/
... and so on for thousands of other brands. I don't think this is necessary, as Google will understand from the content, backlinks and the domain name (including the word "coupon") that brand pages are coupon-focused. Any other thoughts on this?0 -
Positioning rethinking regarding triplicate keyword "landing pages"
Hi! We're rethinking our website and we have some doubts on how it would affect our positioning. Our main keyword right now is "casas de madera". Positioning by this keyword we have three different "main" pages: Our home (http://www.canexel.es/) 2)SEO landing page (http://www.canexel.es/casas-de-madera/) 3)A blog section (http://www.canexel.es/blog/casas-de-madera/) We thought at first about changing our home main keyword, but this option has been ruled out since is the keyword that gives us the most visits and changing it would result on a rebrandindg strategy we are not sure we want to pursue. We're thinking about a canonical from the landing page (2) to our Home (1) and making it disappear from our website. Regarding our blog we've thought about removing the blog section. We've thought about a 301 from every post to a new category or just deleting the category "casas de madera" from our site and telling google not to index the section (3) but continue indexing the posts we already have published under this category. Would any of these harm our positioning? And, if so, is ther any other steps you wolud recomend us taking? In this same topic, we're about to create a SEM Landing page for this same keyword. This page will be very visual and with little text. We are not sure if we should have a canonical pointing from it to our home or just not indexing the new SEM landing page. What would you recommend? Thanks
On-Page Optimization | | Canexel0 -
Rel canonical tag on a single page site?
I have a wordpress theme site which essentially is all in 1 page. Do I need to use rel-canonical tag? It would just loop?
On-Page Optimization | | graftene0 -
Need I add rel="dofollow" or not?
Hello, My website is http://www.vietnamvisacorp.com is using the href links without meta tag rel="dofollow" such as I am using . Should I put ref="dofollow" in this: Thank you!
On-Page Optimization | | JohnHuynh0 -
Silly question about noindex and canonical
Hi, This is probably going to sound a bit stupid, but I nevertheless want to check. We have a site that's going to have identical pages (really not my choice) for a sales reason. The two examples would be example.com/profile-name and example.com/location/profile-name Users using the onsite navigation will always end up in the latter example naturally as they have to select a location before viewing content (plus having the location in the url is nice as there are multiple profiles across different locations that have the same name). However, it's easier to sell our services when we can offer just example.com/profile-name to users for their own marketing reasons. I'd like to make the example.com/profile-name noindex follow, and have just the example.com/location/profile-name indexed, but not sure if it would be better to implement canonical tags instead? Can anyone see any potential pitfalls of using either method or does it not really make a difference (which is what I suspect, but I'd rather look stupid than get this wrong)? Thanks!
On-Page Optimization | | LeahHutcheon0 -
The word "in" between 2 keywords influence on SEO
Does anybody know when you have the word "in" between two keywords has this a negative influence in Google? For example: "Holiday Home Germany" is the search term in Google
On-Page Optimization | | Bram76
"Holiday Home in Germany" as h1 on our website or do we have to use "Holiday Home Germany" on our website?0 -
Rel="canonical" on home page?
I'm using wordpress and the all in one seo pack with the canonical option checked. As I understand it the rel="canonical" tag should be added to pages that are duplicate or similar to tell google that another page (one without the rel="canonical" tag) is the correct one as the url in the tag is pointing google towards it. Why then does the all in one seo pack add rel="canonical" to every page on my site including the home page? Isn't that confusing for google?
On-Page Optimization | | SamCUK0 -
SEF URLs. Should I use / or - ?
I have o activate SEF URLs in a website. Regarding SEO, is there any difference between using / or - ? I mean, Is it better to write URLs like this: http://www.domain.com/folder/folder/page or like this: http://www.domain.com/folder-folder-page ? Is there any difference? Thanks!
On-Page Optimization | | ociosu0