I have a hosting account where I have my main site (www.mainsite.com points to root folder), and a subfolder xpto.com, where I want to have another site (www.xpto.com).
I can access www.anothersite.com by typing www.mainsite.com/xpto.com. Also, using cPanel, I've redirected www.xpto.com to www.mainsite.com/xpto.com.
My question is: is there a way to prevent www.xpto.com access by typing www.mainsite.com/xpto.com, so it can be accessed only by typing www.xpto.com?
EDIT: also, I don't want to www.xpto.com to be accessed via www.xpto.mainsite.com. Any help?
Hope I have explained this clearly :)