The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    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.
     
Loading...

Share This Page