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!

.htaccess redirect all subdomain request to current subdomain

Discussion in 'General Discussion' started by khalidbinwalid, Nov 30, 2012.

  1. khalidbinwalid

    khalidbinwalid Registered

    Nov 14, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    Hi All,

    got this :

    -- root #
    profile #

    ----- subdomain1 #
    ----- subdomain2 #
    ----- subdomain3 #
    the problem is when request from or they always redirect to

    I wish to all request from subdomain, ex: or will redirect to that current request not redirected to root domain ex:

    how to make it with .htaccess ?


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