I have a question.Excuse my ignorance in this matter,i am not a web designer. I uploaded a site using ftp and the home page is shop.php. I wanted it to upload it to the root directory / but i am not sure how to do this now.Will i have to reupload this site? Any help would be greatly appreciated
Upload whatever you want to the folder 'public_html'; that's where whatever you want to display is retrieved from (excuse my wording ). And rename the 'shop.php' file to 'index.php' because if the directory doesn't contain an index.php/.html file, it will just display the contents of the folder in a list, instead of taking you to the homepage (which is normally index.php or index.html).
i'm not quite sure but i think there was a way to change the default loading page with htaccess, if your home page have to be shop.php ( if there are some links connected with it) try finding way to redirect home page.
Use the following command in your .htaccess file: DirectoryIndex shop.php This would cause shop.php to be treated as your default page, or default directory page.
Sometimes it might not be /public_html, so best if you ask your hosting company about this. Or you can refer to DocumentRoot from phpinfo() function.
All of these answers are correct however you should be aware that if you use a .htaccess file to redirect your default page and you ever change the default any time in the future you will have to remove the entry from .htaccess. Another way to achieve the same result is to make the change to the httpd.conf file and add the filename to default page setting. This way you can use either shop.php or index.php and swap and change as you please without any issues. If it's a windows server that your using just add the file name to the defaul page settings in the IIS admin panel then arrange it so that shop.php is first in the list and index.php is second.