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!

How can i redirect all sites to an URL?

Discussion in 'General Discussion' started by, Feb 23, 2014.

  1. Registered

    Dec 8, 2005
    Likes Received:
    Trophy Points:
    Hi, i have a VPS based Centos/Cpanel. I wanna redirect all sites/accounts (including all pages and subdomains of the domains) on the server to an url ( for a short time. How can i do this?
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    The following document explains how to make a change that will apply to all Apache VirtualHosts:

    Apache - Custom Templates That Apply to All VirtualHosts

    You could use this method to setup a custom rewrite rule that redirects the websites to an alternate file or URL.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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