We have a static site that has thousands of HTML pages and are planning to switch to HTTPS in the next few days. As the site is fairly new, we do not have any problems with duplicate content at the moment, which is why we never added a rel="canonical"
link tag on any of our pages.
Now, we want a permanent redirect for all of our site's pages from HTTP to HTTPS, and no longer want to have an insecure HTTP version. We want all old HTTP links to redirect to the HTTPS version. However, I am worried that Google might index the HTTPS version separately and leave the old HTTP version in the Search Results index thus creating duplicate content.
Is a 301 Redirect in the .htaccess
file enough to prevent duplicate indexing by Google, or do we also need to add a canonical tag for each and every page? (we want to avoid adding canonical tags due to maintenance issues since our site is static)