|
hi, I want to shut down my site (in django on Apache) for a day to upload many changes (and do some more testing). What I would like to do is to redirect all incoming traffic to a static page (that says that we will be back shortly), but the requests from my (and my collegues) IP address should work normally. Is that possible? How? |
|
Another option you might want to take a look at is django-maintenancemode. That will allow you to put up a static page to let your visitors know the site is down for maintenance but still allow you to work on the site. There is this one as well django-site-maintenance Thank you. django-site-maintenance plugin seems more active and both are very easy to install and configure. |
|
Hi, You can accomplish this using mod_rewrite via .htaccess. Here are some sample rules you can add:
This would redirect all users that don't have the IP xxx.xxx.xxx.xxx to the "/staticpage.html" URL. I hope this helps. |