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 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:
    1
    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:
    1
    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:
    1
    It is done automaticaly by default by cpanel
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Click the Redirects link in your cPanel and have a peek. ;)
     
    #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:
    1
    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