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.

Virtual Hosts Redirection

Discussion in 'General Discussion' started by n00bie, Oct 9, 2009.

  1. n00bie

    n00bie Active Member

    Joined:
    Mar 20, 2007
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am just wondering on how do I redirect all my apache virtual host domains to one index page ?

    Thank you.
     
  2. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    You can use the PARKED Domains feature in cPanel in order to achieve this. If that is not what you are looking for then let us know the exact requirement in a bit more detail.
     
  3. n00bie

    n00bie Active Member

    Joined:
    Mar 20, 2007
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    I was just moving a dozen of websites from one node to another. In that case I was thinking of putting a default index page within all apache virtual hosts (aka domains) stating that the websites/domains are being moved to a different location.
     
  4. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    It might be easier to drop something like this in a .htaccess file in the docroot for each domain getting moved:

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/sitemoving.html [R=302,L]
    
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    For this purpose, I don't understand your original question ....

    Why bother setting up a default page at all?

    Some particular reason not to just seamlessly transfer things?
     
Loading...

Share This Page