There is an easy way to resolve this by creating or modifying your .htaccess file. The .htaccess file will allow you to alter the webserver functionality.
If you use 20i hosting, you can create an .htaccess file using the file manager within My20i. You will just need to head over to Manage hosting > Options > Manage > FIle Manager > Right click in the file management section > ‘Create New File’
Other web hosts should also allow you to create an .htaccess file – consult their documentation for the details.
After you’ve created the file, you can start editing the contents of the .htaccess file and you can simply add the rules below.
Here are five simple rules to prevent the above issues causing duplicate content: