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.

.htaccess redirect all subdomain request to current subdomain

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

  1. khalidbinwalid

    khalidbinwalid Registered

    Joined:
    Nov 14, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi All,

    got this :

    -- root # example.com
    profile # example.com/profile

    ----- subdomain1 # subdomain1.example.com
    ----- subdomain2 # subdomain2.example.com
    ----- subdomain3 # subdomain3.example.com
    the problem is when request from subdomain1.example.com/profile or subdomain1.example.com/about they always redirect to example.com/profile

    I wish to all request from subdomain, ex: subdomain1.example.com/profile or subdomain1.example.com/profile will redirect to that current request not redirected to root domain ex: example.com/profile

    how to make it with .htaccess ?

    Thanks.
     
Loading...

Share This Page