I've split your response from the other topic into it's own topic as the other topic you responded to is very old now.
Did you originally install Magento within your subdomain and now wants to move it to your main domain?
Make sure you have updated your Base URLs to change them to your main domain in your MySQL database under the core_config_data table and after that clear all caches.