Directory Files

From Prime Wiki
Revision as of 16:17, 11 June 2016 by Admin (talk | contribs) (Created page with "From amongst the several directories found within your CPanel account, only the following are important: /web: It contains all files that are part of the website. Any file an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

From amongst the several directories found within your CPanel account, only the following are important:

/web: It contains all files that are part of the website. Any file and folder inside this directory is visible over the Internet unless you password protect it.

File Structure: Our hosting servers will check for the existence of one of the below files and based on the order specified below, display it's content as the Home Page, when anyone tries to list the content of any folder / directory:

   index.html
   index.htm
   index.php
   index.shtml
   default.html
   default.htm
   default.php

Examples

If you were to upload a file index.html within the web folder of your website somesite.com, then when someone tries to reach either somesite.com or www.somesite.com, then they would be automatically displayed the content of the index.html file. This happens since our server treats the index.html as the home page or default page for this directory.

Similarly, if you were to upload an index.html file within the /web/blog folder, then when someone types somesite.com/blog or www.somesite.com/blog, then they would be automatically displayed the content of the index.html file within the plants folder.

Now, if you were to upload two or more files from amongst the list given above, then the one mentioned higher in the order would be considered as the home page. So in the event that there exists an index.php and default.html file within the same folder, then the index.php file will get considered as the home page.

External links