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
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in .HTACCESS
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- About HTTP_HOST & PHP_SELF
- .htaccess redirect 403 error files to 404 error document
- RestApi server code is not workinng
- Missing images after I redirect to a subdirectory using route.php and/or .htaccess in CodeIgniter Framework
- Internal 500 server error: .htaccess: RewriteCond: bad flag delimiters
- Error 404 not going after Wordpress Permalink change to custom structure
- How work with parked domain names in Codeigniter?
- Redirect keystone app to sub directory using htaccess
- .htaccess rewrite condition to remove 'www' from 'https://www'
- Change displayed URL using htaccess
- .htaccess file making new domain redirect to my original domain
- htaccess www to non-www for subfolders
- htaccess redirect url with multiple folder
- Url friendly htaccess PHP
Related Questions in MAINTENANCE-MODE
- Excluding Maintenance Page in specific directory
- How do I take a .NET site down for maintenance?
- Prestashop Maintenance mode error
- Show Maintenance "Custom Message" to end User if server stops/down in payara
- Schedule website launch
- Yii2 Dynamic Maintenance Mode
- Display a static page while building a Nuxt app
- Nginx maintenance mode static assets (js, css, png)
- How to put a site into maintenance mode while still allowing only me to access?
- maintenance page when no healthy instances in target group
- Enabling "Maintenance mode" in PrestaShop 1.7 using a script and not admin panel?
- What is the proper status code for a maintenance page redirect?
- How to make website unavailable for others while developing it online?
- How can I show a maintenance page when my web server is down or completely powered off?
- How to disconnect all users in sql server except sa?
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 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.