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
-
What is the correct code to write the rel=canonical in the HTML HEAD of the page?
is it like: html> <head> <link rel="canonical" href="http://example.com/" /> head> <body> ...<ref>sdfdfref> or like:
On-Page Optimization | | dubraverd0 -
Home page keyword in url
I have been looking into SEO for a few weeks now trying to perfect a homepage. Going through various sources on MOZ, and other examples out there on the internet, I keep seeing that you should have your keyword in the URL of the page. The homepage is the page most people want to rank the highest in google searches, however, you cannot put the keyword in the URL as most home page URLs are simply /. Should I actually make the home like this: www.example.com/key-word-example? I would imagine this would not be the normal for many users and would seem like it's not the home page.
On-Page Optimization | | Matthew_smart0 -
With 301 Redirects Does Changing URLs Matter?
We are redesigning our website in order to give it a more modern visual look. For the most part all the content will remain the same. Our old site is hosted on .asp so all of our current URLs look something like this: www.example.com/products/food.asp We plan on using 301 redirects in order to update every URL and remove the .asp. Since we are going to be doing 301 redirects for every existing URL anyways, does it matter from an SEO and ranking standpoint, if we also change the content and structure of the URL? For example, would we see a ranking impact if we were to change the above example URL to www.example.com/food? Obviously we want to try to retain as much link juice and ranking factors as possible during this redesign. Another issue we are seeing is with the image file names of our existing website images. We are moving to a new CMS platform (WordPress) that automatically saves images using a folder path similar to this: wp-uploads/2015-08/food. Will that change affect our SEO or ranking at all? When Google crawls an image does it care about the full path? Any insight would be much appreciated! 🙂
On-Page Optimization | | BlueLinkERP0 -
Can Sitemap Be Used to Manage Canonical URLs?
We have a duplicate content challenge that likely has contributed to us loosing SERPs especially for generic keywords such as "audiobook," "audiobooks," "audio book," and "audio books." Our duplicate content is on two levels. 1. The first level is at our web store, www.audiobooksonline.com. Audiobooks are sometimes published in abridged, unabridged, on compact discs, on MP3 CD by the same publisher. In this case we use the publisher description of the story for each "flavor" = duplicate content. Can we use our sitemap to identify only one "flavor" so that a spider doesn't index the others? 2. The second level is that most online merchants of the same publisher's audio book use the same description of the story = lots of duplicate content on the Web. In that we have 11,000+ audio book titles offered at our Web store, I expect Google sees us as having lots of duplicated (on the Web) content and devalues our site. Some of our competitors who rank very high for our generic keywords use the same publisher's description. Any suggestions on how we could make our individual audio book title pages unique will be greatly appreciated.
On-Page Optimization | | lbohen0 -
2 Duplicate pages. One Showing "/"
In SEOMoz report I have 2 pages showing that are identical in name/URL apart from the fact that one ends with the / symbol and one doesnt'. They are both showing as having too many on-page links. But one shows 106 links and the other shows 106. In clients' admin section I can only find evidence of the page without the /. I wonder if anyone could advise how best to move forward? Colin
On-Page Optimization | | NileCruises0 -
Transition between a blog to e-commerce webshop, will my domain "lose" authority
Hi Seomoz'ers, Currently I am analyzing the best possible strategy which situation is as follow: I am having a blog with a great EMD about a specific product we are selling. The blog is currently ranking in position 1 for different keyword phrases. However I would like to make a switch from the current Wordpress blog to Magento webshop. Simply because the product should be sold through a professional webshop with many related products. Only the homepage of mydomainname.com is optimized. I am affraid I will lose my #1 ranking when I put my webstore online on this domainname. Most likely I will lose my PA and keep my DA. Which actions should I take in order to keep the ranking in Google position 1 with the new webstore? My best possible option I guess: 1. Replace the Wordpress blog with the Magento webstore and optimize the homepage with on-page seo of the webstore for the targeted keywords. Will this work? As the backlinks I've built are pointing all to the domainname.com (homepage). Thanks in advance. Any more suggestions are welcome 🙂
On-Page Optimization | | Falcopa0 -
Absolute vs relative urls
Hello, Should absolute or relative urls to be used for the internal links? I heard mixed opinions on that: One source claims that web crawlers prefer absolute urls as they are more understandable Other source points that there is no difference for web crawlers what urls are used and relative urls are shorter which reduces the size of a page. Which option is recommended? Many thanks Darius
On-Page Optimization | | LinenMe0 -
Rel="canonical"
Can you tell me if we've implemented rel="canonical" properly? We want this to be our primary: http://www.autopartstomorrow.com/parts/6052317-r-econ-semi-met-brake-pads- while this would be duplicate and refer robots back to the URL above: http://www.autopartstomorrow.com/parts/6054284 We've added the following to both pages: <link rel="canonical" href="http://www.autopartstomorrow.com/parts/6052317-r-econ-semi-met-brake-pads- "/> Thanks
On-Page Optimization | | jonesatl0