Skip to content

abelbm/magento2-disable-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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