How to prevent duplicate URLs with sh404SEF
If you use sh404SEF and can't solve problems of duplicate URLs, start by going to
Components > sh404SEF > SEF URLs, then under the duplicates header compare the Non-SEF urls.
If you see different values for the Itemid parameter, then that's the source of your problem.