Add Rel Canonical to all pages on my site (Magento)
-
Can anyone guide me as to how to add the REL CANONICAL feature to every page on my website (Magento shopping cart)
Thanks
-
You can add a rel="canonical" link to any magento page as xml layout.
For example if you want to add this to homepage:- navigate to CMS -> Pages and open your home page.
- click design tab
- paste this into Custom Layout Update XML:
<reference name="head"><action method="addLinkRel"><rel>canonical</rel>
<href>http://www.example.com</href></action></reference> -
Hi,
Have you have you had a look at the Yoast magento canonical plugin . Also he has a good article on general magento optimisation. Have to admit these might be a bit dated I just remembered them from when I was doing some stuff with magento a while back. Hope it helps as a starting point though.
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
-
Best category page structure on MY ecommerce site? Advice please
Hi all, I run the site: http://goo.gl/YATL2i I have had this category set up like this for a while now - but wonder if its confusing to google, and potentially my users... let me start by saying my products are available in 3 formats (soon to be 4), so for example i have 3 pages for cctv systems: Analogue / SD cctv systems: http://goo.gl/SPkdYW hd sdi systems: http://goo.gl/uksRAD ip systems: http://goo.gl/UMHBd0 each of the above sub categories then have a further sub category of 2, 4, 6, 8, 10 or 16 camera kit page... I am trying to figure out if it would be better to just have one "cctv systems" page, and use filters in the left menu so users can filter by format, number of cameras etc etc... but these filters would not navigate to other pages but simply limit the view on the one "cctv systems" page. If you think 1 page with filters is best - can you then advise what should i do with all the sub category pages i no longer need? 301 rediret to the main cctv systems page? Basically i currently have my site set up so cctv products are categorised by the format i,e SD, HD-SDI or IP... Which i thought was very important the user doesnt mix formats as it can not work - but am thinking maybe i should catorgorize by type i.e CCTV Camera, CCTV Recorders or CCTV Systems, and then use filters to drill further down in the categories. Any thoughts on this would be much appreciated. thanks
On-Page Optimization | | isntworkdull0 -
Should I "No Index" Certain Pages On My Site?
I have some pages on my site that don't really have any content other than some iframes that are embedded from another site. I thought it would be best to tag the page with a no-index so that search engines would leave the page alone since it has no content as far as the search engine can tell (but does provide value to my site visitors). Is this the proper approach or does it do more harm than good?
On-Page Optimization | | Kyle Eaves0 -
I'm using Canonical URL but still receiving message - Appropriate Use of Rel Canonical
Hello, I checked my site and it looks like everything is setup correctly for canonical url but I keep getting the message that it's not. Am I doing something wrong? SORRY I FIGURED IT OUT! THANK YOU! HOW DO I DELETE THIS?
On-Page Optimization | | seohlp440 -
Add multiple H2 tags on a single page. Good or Bad?
Can we add Multipal H2 tags on a single page, Is good or Bad. Here is an example - http://packforcity.com/things-to-do-in-new-york-city/
On-Page Optimization | | ross254sidney0 -
On page/site - Images & bold text
As I understand it on a page where you are going for the keywords 'Metal gates', you have an image titled 'Metal gates' (Lets say MG for Metal gates to save on my typing!) with the alt tag being 'MG' Now as I also understand it, if an image is also used as a link the Alt tag is also the anchor text? So, I have a page on Metal gates using the above methods, from this page I have image links to a metal driveway gates page (as well as text links), would I be best using an image titled 'Metal driveway gates' with the alt text as ' Metal driveway gates' to link to my metal driveway gates page (if you follow me)? Also on the image question, what if you have say six images (that are all links) on the metal gates page, how would you title the images and alt tags? Variations on Metal gates? Or using the keyword on the page that the link points to? (I'm not looking to keyword stuff but want to get it right! ) Also is it important to have your on page keywords in bold still? i ask because I've bolded text on my pages but not the main keywords - I've bolded text that I want people to see, but do not want to take away any power from my keywords if you follow me?
On-Page Optimization | | Jon-C0 -
One Page Website vs. Multipage Site, if you want to target one specific Keyword only.
Hello! suppose I want to start a website about, let's say spray adhesives. My aim is to rank on the first page for the keyword "spray adhesive". I don't care about my ranking on more specific keywords like "Tesa spray adhesive" or "3M spray adhesive". My ranking for more general keywords like "glue" is unimportant, too. So I thought about creating a single-page website, that writes about spray adhesives, the pros & cons of every manufacturer, and shows the best discounts for spray adhesives. Each section can be accessed through a top-navigation, that links via anchors to the individual sections. The page will be updated every day On the other hand, i could create a blog and write an article for every specific spray adhesive. So I would have a home page that lists the latest articles for every product, with titles like "3M spray adhesive CreativeMount", "3M spray adhesive SprayMount", "Tesa Spray adhesive" ... I will write one article every day What do you think would be the better strategy? Is there a risk to create competing articles for the keyword "spray adhesive" and thus rank lower if I go with the blog strategy? On the other hand, does google rate singe-page websites lower, because google thinks those websites are less valuable than websites with many pages for the same topic? Thank you ver much for you help in advance!
On-Page Optimization | | MGMT0 -
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 -
2 canonical tags on the same page
When using the 'on-page optimizer' tool, I continue to get the same recommendation on every page to only use 1 canonical tag on the page. I'm not sure why there are 2 tags on each page in the first place so I don't know how to remove the one that's not needed. Our site is on a WP blog and a sample page to view the source code would be: http://www.shilohstreet.com/blog/is-flipping-houses-smart-real-estate-investing.html Does anyone know why this is happening, how to fix it and/or if I should even be concerned with it? Thanks!
On-Page Optimization | | shilohstreet0