My application is fully built now. But at times i need to bring it down for maintenance. So i created a .htaccess file and now when users try to open the application they get redirected to a different page with a maintenance image in it. The problem is after the superadmins are done with the maintenance, they need to check if the app is working fine now. But there is no way to do that as even they get navigated to the maintenance page. One of the solution is to create a testing environment. But is their any other easy solution ?
Application visibility for superadmin during maintenance mode
185 Views Asked by Abhishek Saha At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in .HTACCESS
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- Check REQUEST_URI for any /nl/ or /en/ to change my RewriteRules
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Use htaccess to add subdirectory to url while displaying base url
- Making a POST to a folder are recived as a GET
- Missing Headers Security Report .htaccess
- I can't retrieve GET values
- Ionic local CORS error, yet headers are set
- htaccess rewrite rule - if the parameter value has forward slashes
- How to configure .htaccess file for two different websites routing in my shared hosting server
- Blank page after Create React App Build placed on server
- How to redirect to the landing page when the domain name is searched?
- problem with htaccess RewriteRule with parameters
- WordPress Multisite Subdomain showing error 404
- htaccess config to serve jxl / avif if file exist
Related Questions in MAINTENANCE-MODE
- Cloud SQL Stuck with "Operation is in progress"
- Maintenance page configuration with dynamic timing in Apache
- Nginx maintenance mode static assets (js, css, png)
- Display a static page while building a Nuxt app
- How to implement a maintenance mode for a backend on Django, Docker and AWS ECS?
- How to get WiX Bootstrapper to run the MSI's maintenance UI Dialog INSTEAD OF the bootstrapper's maintenance UI Dialog
- VCenter Maintenance mode REST API is not working
- IBM Cloud Code Engine: How to setup maintenance domain when backup going on
- WordPress site fails to update any plugin
- Apache2 mod_rewrite to custom maintenance.html page
- updating failed. the response is not a valid json response. WordPress website is on maintenance mode and when I want to publish a page it shows this
- WordPress - Custom plugin for maintenance mode not work
- Htaccess Maintenance Mode Exlude 1 Domain
- Nginx not loading custom maintenance page under @maintenance directive?
- Spring boot block requests for maintenance and return 503 error on each requests
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you have some Static IP's in the .htaccess file you can try doing:
Ypu can specify several REMOTE_ADDR lines for more than 1 'admin' ip if needed.
This will send anyone with IP's NOT mentioned to the maintenance page.
An ALTERNATIVE is to handle the maintenance mode within PHP... basically then you can have a list of IP's in a php script and show maintanance page or run app as normal... obviously such solution would need to be properly placed in the flow of you're code and some simple mechanism to enable/disable the site.