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!

subdomain advice needed

Discussion in 'General Discussion' started by mv_, Apr 29, 2007.

  1. mv_

    mv_ Active Member

    Joined:
    Jun 26, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    I have a subdomain test.domain.com which is placed in /public_html/test/ directory. This makes the subdomain accessible via http://test.domain.com and http://www.domain.com/test/

    I want to block the second url, so only test.domain.com is working. Any advice how in .htacces I can do this?

    Thank you.

    mv
     
  2. patoy

    patoy Member

    Joined:
    Apr 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    how did you assign the test.domain.com to /test folder?
     
  3. mv_

    mv_ Active Member

    Joined:
    Jun 26, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    It is done automaticaly by default by cpanel
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,467
    Likes Received:
    420
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Click the Redirects link in your cPanel and have a peek. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 Infopro, May 2, 2007
    Last edited: May 2, 2007
  5. mv_

    mv_ Active Member

    Joined:
    Jun 26, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    151
    Thank you dude. It partially solves my problem.

    When I go to www.domain.com/test/ it redirects to test.domain.com but when google or someone comes to www.domain.com/test/welcome.html that has been there for some time) the redirect(rewrite) does not work.
     
Loading...

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