In wordpress, an unattached attachment URL is
http://domain.com/?attachment=$id
Once after it's attached to a parent, it goes with parent's URL structure, for example:
http://domain.com/parent-title/attachment-title
I need my attachments URL contains only root domain as the unattached ones. How to make it?