This is known as Canonical issue, this may harm your ranking because the backlinks can be divided into two parts, this may also become a reason for site penalty. There are many ways by which you can solve Canonical issue and that are: Using Google Webmaster Tools, Using .htaccess file, Using cPanel, Using IIS7 etc. If you not know how to use these tools than contact any expert.