SEO in Magento: Optimize categories, URLs, canonical tags, and performance

  • Disable the category directory in URLs, use canonical URLs, and remove the .html suffix.
  • It works with metadata by store view and uses templates to generate goals at scale.
  • Speed ​​first: caching, JS/CSS minification, image compression, CDN and HTTPS.
  • XML map + robots.txt, breadcrumbs and internal linking for crawling and conversion.

Optimize categories in Magento to improve SEO Ecommerce

Category SEO in Magento

The first step is to get the latest version of Magento then enable the Server URL rewritingThis setting is located in System, Settings, Web Search engine optimization. Extra recommendation: In Catalog > Catalog > SEO, leave the URL suffix empty. product and category To remove .html, use lowercase letters and hyphens and avoid special characters.

You should also know that Magento offers you the possibility to add the name of categories to the product URL directory. However, since it's not fully supported, you can create duplicate contentIt's a good idea to disable it: System > Settings > Catalog > SEO > Use category directory for product URLs > No.

After this it will be necessary to set the details of each categoryTo do this, go to Catalog > Manage Categories. Here you will find the following fields:

  • Meta descriptionWrite a description Attractive and click-oriented.
  • TitleLeave it empty to use the category name and inherit the hierarchy.
  • Key URLMaintain a URL short and descriptive with keyword; avoid empty words.

For each store view you can specify Name, Description, Page Title, and Meta DescriptionIn multilingual mode, keep the semantic coherenceAvoid references to years for evergreen content, and if you need speed, use templates in Stores > Settings > Catalog > Product Field Auto-Generation with markers like {{name}}, {{category}} o {{brand}}.

URL structure, canonicals, and duplicate control

URL structure in Magento

Activate the tags canonical in Stores > Settings > Catalog > SEO for categories and productsThis way you consolidate signals and avoid problems caused by URL variations. Opt for URLs short, with scripts, a lowercase and without suffixes. When you change a URL, mark Create permanent redirect to maintain authority (301).

Optimize robots.txt From Content > Settings > Search Engine Robots to protect the crawl budget and avoid indexing internal searches, shopping cart, or checkout. Example:

User-agent: *
Disallow: /checkout/
Disallow: /customer/
Disallow: /cart/
Disallow: /catalogsearch/
Allow: /

Sitemaps, breadcrumbs, and internal linking

Sitemap and breadcrumbs

Create the XML site map In Marketing > SEO & Search > Site Map, schedule its generation and submit it in Search Console. Enable breadcrumbs In General > Web > Default Pages, you can improve navigation and semantic context. This reinforces the internal linking with related products, cross-selling, and descriptive links to parent and sister categories; distributes authority and facilitates discovery.

Performance, mobile and security

Performance and mobile in Magento

Active HTTPS In Stores > Settings > Web > Base URLs (Secure), force secure URLs in storefront and admin. Improves the speed with System > Cache Management, minification and merging of JS/CSS In Advanced > Developer, and compress images with TinyPNG or ImageOptim; if possible, use CDNVarnish/Redis and a properly configured Nginx server.

Optimize your mobile device with a responsive themeTry Lighthouse and use responsive images with srcset:

<img src='image-400.jpg' srcset='image-400.jpg 400w, image-800.jpg 800w, image-1200.jpg 1200w' sizes='(max-width: 600px) 400px, (max-width: 1200px) 800px, 1200px' alt='Imagen de producto'>

Keyword and content research

Investigate with Google Predictions, SEMrush y Ahrefsprioritizes long tail e purchase intent and analyze the competition to identify gaps. Integrate the keyword into H1, subheadings and first paragraphs, and avoid fillingCreate helpful descriptions, with bullet points and expected benefits; use OTHER Use descriptive images and don't rely on meta keywords.

SEO extensions and tracking

Strengthen your store with extensions: SEO for Magento 2 by Magefan (canonicals, metadata, rich snippets, sitemaps), SEO Suite Ultimate by Mageworx (goal templates, 301/302 redirects, reports, PWA support) and Amasty SEO Toolkit Pro (rich snippets, mobile optimization, sitemaps). Monitor with Google Analytics y Search Console; audit with SEMrush/Ahrefs/Moz to detect broken links, duplicates, and opportunities. Manage URL Rewrites in Marketing > SEO & Search for each structural change.

Faceted navigation, pagination, and other technical settings

La faceted navigation Improve UX: Create indexable subcategories only for in-demand combinations and control filters with canonicals or noindex when parameters apply. Adds pagination. previous/next with SEO modules when necessary. Consider Imagemagick for image processing, baller to bundle custom JS and maintain optimized hosting for Magento with support from Varnish/Redis/CDN.

Optimizing categories, controlling URLs, speeding up the site, and measuring everything with discipline will allow you to win sustained organic visibility and improve conversion without sacrificing the shopping experience.

Related article:
How to choose the best content management system (CMS): criteria, types, and practical process