To fix sub domain problem, refer

http://forums.buyscripts.in/viewtopic.php?p=1530#1530