How to remove pages that are duplicated in the search?

Hello stolknulsya with this problem.
---
Page search displays two types (and some of them are duplicated):
1. https://www.name-site.com
2. https://name-site.com/
---
I want to leave the second option but how to remove first no idea.
---
Also the problem is the main page for some reason it indexed 2 times and in the second version she ends - https://name-site.com/?cgtz=169 - no such tag I have.
April 7th 20 at 15:18
3 answers
April 7th 20 at 15:20
Redirects and canonical attitude
Please tell me how to make the canonical page (This meta tag need to register?) or you can Google the console to give the address to her ?
---
The fact that meta tag to specify one page (home) will not work! - Jerald5 commented on April 7th 20 at 15:23
@Quinton.Breitenberg,
The fact that meta tag to specify one page (home) will not work!

Why can't you? This is your site, write what you want. - Gustave commented on April 7th 20 at 15:26
@Rebeka_Gusikows, I don't Have html files, and SMS, and it is arranged so that the upper part of the tag head - all the pages are the same.
---
As I understand in order to make the canonical page, we need to add this line to the page:
and it should be placed in the head tag right ?
If I do this string will be duplicated on all pages.
The tag body can place it but as I understand it is wrong. - Jerald5 commented on April 7th 20 at 15:29
April 7th 20 at 15:22
Enough for a web server to put an explicit forwarding with www. on without www.
it is more than half a year - Jerald5 commented on April 7th 20 at 15:25
@Quinton.Breitenberg, throw off the link on the www page, check it out. - maxie51 commented on April 7th 20 at 15:28
April 7th 20 at 15:24
Can you send the contents of htaccess? It would be nice even a website address or something for cms.

Find more questions by tags GoogleSearch engine optimizationYandex.Webmaster