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 Netmira.com, Feb 23, 2014.

  1. Netmira.com

    Netmira.com Registered

    Joined:
    Dec 8, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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 (example.com/page.html) for a short time. How can i do this?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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...
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