I want to know if we strip out file extensions using .htaccess for a new website, do we have to add rel-canonical tag for every page to avoid Google considering them as duplicate content?
To more clarify that, I mean:
I'm looking to use example.com/contact URL instead of example.com/contact.php.
The issue is, I'm worried that Google will detect these as duplicates.
example.com/contact and example.com/contact.php
Then I will be adding rel=canonical tags for every page. I want to know is this the best practice? Or what is the best way?