How do I make the site maintenance mode?

Open to all! Ask other shopowners for help.
Post Reply
abofayez

How do I make the site maintenance mode?

Post by abofayez »

How do I make the site maintenance mode?


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: How do I make the site maintenance mode?

Post by bonbec »

Take a look to this addon :
app.php/addons/free_addon/store_mode
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: How do I make the site maintenance mode?

Post by heatherbell »

abofayez

Re: How do I make the site maintenance mode?

Post by abofayez »

Yes... I have tried all the methods and found that the easiest and best way to use is to use the .htaccess file. Indeed, the results were excellent.
This is the code for those who want to benefit.
thank you

Code: Select all


RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
RewriteCond %{REQUEST_URI} !/xx\.html$  
RewriteRule .* http://www.xxxxx.com/xx.html [R=302,L]

This code redirects the user to an alternative page. Allowing a specific IP owner to enter and work on the home page.
14Steve14
Senior Contributor
Posts: 921
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: How do I make the site maintenance mode?

Post by 14Steve14 »

abofayez wrote: Fri Jun 11, 2021 10:09 am Yes... I have tried all the methods and found that the easiest and best way to use is to use the .htaccess file. Indeed, the results were excellent.
This is the code for those who want to benefit.
thank you

Code: Select all


RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
RewriteCond %{REQUEST_URI} !/xx\.html$  
RewriteRule .* http://www.xxxxx.com/xx.html [R=302,L]

This code redirects the user to an alternative page. Allowing a specific IP owner to enter and work on the home page.
Thats what the store mode addon does, but in a way that only needs the admin back end and no editing of any files. At least you got it sorted in a way that you are happy with.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply