开发者

How to implement maintenance mode in custom php cms?

开发者 https://www.devze.com 2023-02-05 05:46 出处:网络
Ello, I would like to make maintenance mode for my website, because i daily update files from development to production and website in that time website slows down or errors occurring for user at tha

Ello,

I would like to make maintenance mode for my website, because i daily update files from development to production and website in that time website slows down or errors occurring for user at that time.

What the procedure for this kind of work. I would also like to allow users with right permissio开发者_开发知识库ns to still login in website and use it normally (for testing purposes of implemented new features).

Thanks.


The answer really depends on the architecture of your cms. If there were no users needing a login during maintenance, you could use .htaccess to redirect browsers to a static page showing that maintenance is in progress. But if you need to be able to show some of the updated content, you have to make decision whether or not you want to show it to a specific visitor at cms level.

0

精彩评论

暂无评论...
验证码 换一张
取 消