maintenance-mode

Using htaccess block access to a range of URLs except for my IP address

旧巷老猫 提交于 2019-12-25 02:55:43
问题 How can I block a range or URL's for all but my IP address. So ... Allow http://mydomain.com/* to all users Block http://mydomain.com/thisdirectoryandallcontents/* to all but my IP I found some code from another site which might work but I don't have the htaccess skills to adapt it Options +FollowSymlinks RewriteEngine on #urls to exclude RewriteCond %{REQUEST_URI} !/url-to-exclude-1$ RewriteCond %{REQUEST_URI} !/url-to-exclude-2$ RewriteCond %{REQUEST_URI} !^/images$ RewriteCond %{REQUEST

AWS load balancer and maintenance page

时间秒杀一切 提交于 2019-12-21 03:38:19
问题 I'm using AWS Load Balancer with 3 EC2 servers, and I'm trying to serve a Maintenance page when site is under maintenance. This page need to return 503 HTTP code, because it is a proper code for a maintenance mode and will prevent possible problems with SEO. When I return 503 code from any of my servers, Load Balancer makes it "Not In Service", and when all servers return 503, website returns a blank page (because all servers are disconnected). My questions are: 1) Is there any way to serve a

How to implement “Maintenance Mode” on already established website

心不动则不痛 提交于 2019-11-27 18:38:06
I have built a website (PHP) with more than 60 pages. I have only now realized (unfortunately) that I should have built in an "In Maintenance Mode" feature to allow an admin to temporarily disable the website and point it to a Maintenance Mode page. This would only allow those logged in as an admin to view the website. The options I see are: Add a new "include" file to the top of every single PHP page. I have one include that is used to display the navigation bar on every page (navigation class). I could write the Maintenance Mode code in this class. Do I have any other options? The 1st option

How to implement “Maintenance Mode” on already established website

孤街醉人 提交于 2019-11-26 19:27:13
问题 I have built a website (PHP) with more than 60 pages. I have only now realized (unfortunately) that I should have built in an "In Maintenance Mode" feature to allow an admin to temporarily disable the website and point it to a Maintenance Mode page. This would only allow those logged in as an admin to view the website. The options I see are: Add a new "include" file to the top of every single PHP page. I have one include that is used to display the navigation bar on every page (navigation