Magento 2 Flat Category URLs InstallationFlat Category URLs

« Back to Flat Category URLs

You can install the module for Magento 2 using Composer or you can manually install it using FTP.

  • Run the following commands in your Magento 2 root directory to install the module using Composer.

    # Add the FishPig Composer repo
    composer config repositories.fishpig composer https://repo.fishpig.co.uk/
        
    # Install the module using Composer
    composer require fishpig/magento2-flatcategoryurl:*
    
    # Enable the module in Magento 2
    php bin/magento module:enable FishPig_FlatCategoryURL
    
    # Run the Magento upgrade system
    php bin/magento setup:upgrade
  • You can download the latest version of the module from the Downloads page.

    Extract the ZIP file and upload the files to your Magento site at the directory below:

    app/code/FishPig/FlatCategoryURL

    When creating the folders, ensure you use the correct capitalisation.

    To complete the installation, run the following commands in a terminal.

    # Enable the module in Magento 2
    php bin/magento module:enable FishPig_FlatCategoryURL
    
    # Run the Magento upgrade system
    php bin/magento setup:upgrade

After installing the module, go to the configuration in the Magento 2 Admin and set the configuration options. You can then update the category URLs using the following command:

php bin/magento fishpig:flatcategoryurl:reindex

Documentation