Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Create a temporary redirect for an account during upgrade

Discussion in 'General Discussion' started by ChiMark, Apr 4, 2019.

  1. ChiMark

    ChiMark Registered

    Joined:
    Jul 1, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,733
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ChiMark

    ChiMark Registered

    Joined:
    Jul 1, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indianapolis
    cPanel Access Level:
    Root Administrator
    Thanks, unfortunately since this involves a code change from Magento 1 to Magento 2, I cannot use maintenance mode (and with the size of the database the migration will take a number of hours) - really need to direct to a construction page.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,733
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice