I have multi websites, I set website or store code in server conf that's is $_SERVER
Now I have to enable maintenance flag or page only for specific store rest other store should
So how to do it ? any suggestion ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIf your installations have different IP addresses, you can use this
magento maintenance:enable [--ip=<ip address> ... --ip=<ip address>] | [ip=none]
magento maintenance:disable [--ip=<ip address> ... --ip=<ip address>] | [ip=none]
magento maintenance:status
--ip= is the IP you want to exempt from maintenance mode
It's even in the docs: https://devdocs.magento.com/guides/v2.2/install-gde/install/cli/install-cli-subcommands-maint.html