Use canonical tags: Canonical tags are tags that are added to a web page to help specify which version of the page should be indexed by search engines. This helps to prevent duplicate content from appearing in search engine results.
Use unique and descriptive titles: When creating titles and meta descriptions for your web pages, make sure that each one is unique and descriptive of the content on the page. This will help search engines to understand the content and index the correct page.
Use 301 redirects: A 301 redirect is a permanent redirect from one URL to another. If you have duplicate content on two different URLs, you can use a 301 redirect to point search engines to the desired page. This will help to avoid duplicate content in search engine results.
Use robots.txt: The robots.txt file is used to help search engine crawlers understand which parts of your website should and should not be indexed. If you have duplicate content on your website, you can use robots.txt to tell search engine crawlers to ignore certain pages and only index the original page.