Now the question is does Google take and treats both the urls as a separate pages.
The answer is yes, Google treats both the url as separate identity, the issue will occurs as both url renders the same content and if you do not fix this issue your site will be penalized by search engine , i.e Google. Such issues are known as canonical issues so to solve such issue you have to use canonical urls or we call ot 301 redirect, doing this it will make sure that search engines will understand that these pages are the same and which URL to use in their search results. It also makes sure all links to the canonical URL are credited to the main URL.
For doing a 301 redirect in application using .htaccess to map URLs just follow below URL structure in my .htaccess file