4

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 ?

-1

If 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.