Manual:NamespaceDupes.php

namespaceDupes.php is a maintenance script located in the maintenance directory that can be used to clean up inaccessible titles after adding a namespace (or interwiki prefix).

Usage
Go to the maintenance directory and run: php namespaceDupes.php --fix