m (Created page with "<seo title="Can't open site after upload" metakeywords="view site,can't open site" metadescription="Can't open site after upload" /> <br> <div align=justify>Just imagine the sit...") |
m |
||
Line 1: | Line 1: | ||
<seo title="Can't open site after upload" metakeywords="view site,can't open site" metadescription="Can't open site after upload" /> | <seo title="Can't open site after upload" metakeywords="view site,can't open site" metadescription="Can't open site after upload" /> | ||
− | |||
− | |||
<div align=justify>Just imagine the situation when you have spent a lot of time to create a website, uploaded the site with FTP, but then, all of a sudden, you cannot view the site online when looking it up in your browser. What's wrong? Is something wrong with your browser? Was your site FTP upload incomplete? Why can't open the site after upload? | <div align=justify>Just imagine the situation when you have spent a lot of time to create a website, uploaded the site with FTP, but then, all of a sudden, you cannot view the site online when looking it up in your browser. What's wrong? Is something wrong with your browser? Was your site FTP upload incomplete? Why can't open the site after upload? | ||
The most possible reason for you being unable to view the site is that you are using a non-standard index filename for your site's home page. By default, your home page should be named index.html as this is the very page that starts loading when your site name is typed into a browser. | The most possible reason for you being unable to view the site is that you are using a non-standard index filename for your site's home page. By default, your home page should be named index.html as this is the very page that starts loading when your site name is typed into a browser. | ||
− | For example, your site's home page is Home.htm. In order to correct the issue and make your site display online, you have to log in your cPanel and go to the File Manager. Open the ''public_html'' directory and create a new file called .htaccess. Add the following line to it: | + | For example, your site's home page is Home.htm. In order to correct the issue and make your site display online, you have to log in your cPanel and go to the File Manager. Open the '''public_html''' directory and create a new file called '''''.htaccess'''''. Add the following line to it: |
''DirectoryIndex Home.htm'' | ''DirectoryIndex Home.htm'' | ||
Line 12: | Line 10: | ||
This Apache directive will instruct the webserver to open the file Default.htm when your site is opened. Once done, try to view the site by refreshing the page in your browser. | This Apache directive will instruct the webserver to open the file Default.htm when your site is opened. Once done, try to view the site by refreshing the page in your browser. | ||
− | Alternatively you can rename Home.htm to index.html and make sure all your site links to the home page are corrected. This can be done via cPanel File Manager as well. | + | Alternatively you can rename Home.htm to index.html and make sure all your site links to the home page are corrected. This can be done via cPanel File Manager as well. Please be attentive, the case of letters in file name matters! So Index.html and indeex.html would be different files. |
Now you know what to do in case you can't open the site after upload and can resolve it within a minute's time.</div> | Now you know what to do in case you can't open the site after upload and can resolve it within a minute's time.</div> |