banner



How To Upload A File To The Root Directory Of My Blogger Website

If you need to upload files to your hosting account, you will demand to know to which directory to upload them. The specific directory you volition upload them to will depend on whether yous are working with the main domain, an addon domain, or a subdomain. In this guide, we discuss how to decide the document root of your website. (No hosting account? No problem- nosotros've got you covered! Our VPS Hosting option takes the guesswork out of website hosting.)

Finding the Certificate Root

A domain's document root, as well known as the home folder, is the chief folder that contains all of the files for either a domain or a subdomain.

Main Domain
The document root for your main domain proper noun is your public_html folder. This means when someone visits your main domain, the server returns files that are located in the public_html folder.

Subdomains
The certificate root for a subdomain is a chip different. If your subdomain is https://store.example.com, then the document root folder would be public_html/store.

Addon Domains
Addon domain document roots are very similar to subdomains. If there is an addon domain on your account, you will need to wait at the >cPanel Addon Domains section in social club to see where the root folder has been set. Beneath is a charted caption also.

Domain type URL path File Structure
Main domain https://example.com public_html
Subdomain https://store.example.com public_html/store
Addon domain https://example2.com add_on_domains/example2.com

How practise I notice the document root of an addon / subdomain?

If you lot are unsure of the document root folder for an addon or a subdomain because you lot did not go with the defaults, you tin can find information technology by using the post-obit steps:

  1. Log into cPanel
  2. Click Addon domains
  3. You will run across a list of addon domains configured in your account and the certificate root will exist listed here.

Finding a subdomain'south document root

  1. Log into cPanel
  2. Click Subdomains
  3. You will run into a listing of addon domains configured in your account and the document root will be listed here.

What file loads first?

If no particular file is specified, the directory index file volition be the showtime file the server loads from a binder. For case, if y'all type in case.com/contact_us.php, the server will render the contact_us.php page. If yous type in simply example.com, the server will load the directory's index file. The server looks for these specific files in the post-obit order:

  1. alphabetize.htm
  2. index.html
  3. index.php

If the server does not observe any of these files, it will brandish a default screen with a list of the files in the folder equally shown to the right. This tin exist a security gamble so you e'er desire to ensure that a file will exist served instead.

Can I alter the directory index file?

Some website blueprint applications proper noun the dwelling house folio something other than the standard index.htm, index.html or index.php. For example, the awarding may name your homepage Welcome.html, or Home.html. If your application does this, you lot will demand to modify your .htaccess file and set your Directory Index setting to match that of website's first page.

How do I change the directory index?

To modify your directory index, edit your .htaccess file and add the post-obit line:

DirectoryIndex some-file.html

For example:
Permit's presume that the homepage for your website is named Welcome.html. We demand to update the .htaccess file so that the server knows to load Welcome.html first, instead of index.htm. Open (or create) the .htaccess file in your domain'south document root and add the following line:

DirectoryIndex Welcome.html

Yes, it is that easy! Please annotation that the server is case sensitive, so be sure to use the proper instance. For example, Welcome.html is different than welcome.html.

Source: https://www.inmotionhosting.com/support/website/where-to-upload-files/

Posted by: alleyarerest.blogspot.com

0 Response to "How To Upload A File To The Root Directory Of My Blogger Website"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel