Subdomains to subdirectories

I have a subdomains setup with a number of sites up right now, but nothing major. I would like to switch from subdomains back to sub directories.