abelbm/magento2-disablefrontend 1.1.1

Disable Frontend in Magento 2.

Type

magento2-module

License

AGPL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Disable Frontend in Magento 2

Disable the frontend in Magento 2 for using only the Admin and the API routes.

1 - Installation Disable Frontend

Manual Installation

Install Disable Frontend for Magento2 * Download the extension * Unzip the file * Create a folder {Magento root}/app/code/Abelbm/DisableFrontend * Copy the content from the unzip folder

Using Composer
composer require abelbm/magento2-disablefrontend

2 - Enable Disable Frontend

  • php bin/magento module:enable Abelbm_DisableFrontend
  • php bin/magento setup:upgrade
  • php bin/magento cache:flush
  • php bin/magento setup:di:compile

    3 - Change the frontend redirect

    Stores > Configuration > Advanced > Admin > Disable Frontend