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.

subdomain redirect in httpd.conf?

Discussion in 'General Discussion' started by sirbrent, Dec 25, 2008.

  1. sirbrent

    sirbrent Well-Known Member

    Sep 30, 2008
    Likes Received:
    Trophy Points:
    Hello, Im trying to find out what i need to add to httpd.conf to perform a redirect in the scenario below:

    I want anyone who visits to be redirected to

    Please note that it must only redirect the subdomain when using https, as http should be handled normally (which is owned by a users cPanel account).

    It is important that I add (or include) to httpd.conf, and not do it through the users cpanel.

    also, correct me if i am wrong but i believe i cannot use a RewriteRule because it will throw errors with the SSL certificate?

    Thanks so much for reading this post.
    #1 sirbrent, Dec 25, 2008
    Last edited: Dec 25, 2008

Share This Page