Subdomain created with Apache but Subfolder still accessible

Discussion in 'Site & Server Administration' started by noyu, Sep 18, 2009.

  1. #1
    Hi

    I have asked a colleague to create a subdomain for my site, and it seems ok now. However, I realized that the previous url subfolder is still accessible.

    I.e -
    sub.domain.com and
    domain.com/sub

    sub.domain.com/abc and
    domain.com/sub/abc

    are both working and showing the same content. which is probably bad as it might be regarded as duplicate content by google.

    I would like to use only the subdomain. Can anyone teach me what I can do?

    Do I change my apache setting or can it be done on htaccess file?
     
    noyu, Sep 18, 2009 IP