Coder Social home page Coder Social logo

sitemap's Introduction

Magento 2: Sitemap

Adds the home page to the XML sitemap in Magento 2.

Intro

Providing search engines with a sitemap in a machine readable format is a SEO best practice for many years now, and Magento already offers such functionality out of the box.

Unfortunately, Magento also excludes so called utility CMS pages, including the home page, from the generated XML sitemaps, which is considered a big mistake among SEO experts.

This extension explicitly adds the store’s home page when generating an XML sitemap, using the store’s base URL as configured. On a side note, the home page can be accessed with and without its URL key in Magento, so the extension also adds a canonical tag to the home page to avoid duplicate pages.

Screenshot: Magento admin interface for generating sitemaps.

How to install

Simply require the extension via Composer.

$ composer require smaex/sitemap ^1.0

Finally, enable the module via Magento’s CLI.

$ magento module:enable Smaex_Sitemap

How to use

The extension works pretty much out of the box without further configuration. However, it also provides a new system configuration for fine-tuning.

Screenshot: Magento admin interface for generating sitemaps.

We’re hiring!

We’re currently looking for interested masochists PHP & Magento developers to join our small, friendly and experienced Magento Team in Munich. Just drop me a line via [email protected]

sitemap's People

Contributors

jensscherbl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

gjportegies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.