Create a temporary redirect for an account during upgrade

ChiMark

Registered
Jul 1, 2015
3
0
1
Indianapolis
cPanel Access Level
Root Administrator
I'm preparing for a migration of Magento to 2.0 with a massive Web store. Since this will take a few hours to complete, I need to shut down access to the current store across the entire account, while still allowing myself access to the URL. We don't want customers to see a suspension screen or anything like that, so need to come up with a way to redirect all traffic to a construction page (which we can host on another account). Not finding any way to do this right now, though. Thoughts?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

ChiMark

Registered
Jul 1, 2015
3
0
1
Indianapolis
cPanel Access Level
Root Administrator

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Another solution may be to modify the directory index priority to include for example index.html first (if your magento index files are .php) and then place an under construction index.html in the public html which will get viewed first instead of anything else on the site. You could also redirect any subdomains to the index.html file as well.

DirectoryIndex Priority can be modified in WHM>>Service Configuration>>Apache Configuration>>DirectoryIndex Priority.


Thanks!