We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.6.12. Hosting a file and getting a link to it

Important points:

  • It is recommended to use in file names latin... When downloading files with national alphabets in their names, you may need to converting file name encoding via console.
  • If the file name contains uppercase characters (capital letters), then it must be indicated in the same way in the link. It is recommended to use symbols in file names lowercase (small letters).
  • When changing the root directory of the site the path where you want to download the file will also change. The directory specified in the settings will be added to it.
  • The accessibility of the downloaded file may be affected by the access restrictions specified in the file .htaccess.

To place a file on a hosting and get a link to it, do the following:

  1. Discover filemanager or connect to hosting using any FTPclient.
  2. Go to site root directory, where the required file will be located, or its subdirectory. The path to the root directory looks like this:
    • For a site on the main domain - example.com/wwwwhere example.com - the name of your site.
    • For a site on a subdomain - example.com/subdomainwhere example.com - the name of your site, and subdomain - the name of the subdomain of this site.
  3. Download the file from your PC to this directory. The download process using the file manager is described in detail here.
  4. Direct links to the uploaded file will look like this:
    • For a site on the main domain:
      • If the file was uploaded directly to the root directory - http://example.com/file.phpwhere file.php Is the name of the uploaded file.
      • If the file was uploaded to any of the subdirectories - http://example.com/directory/file.phpwhere file.php Is the name of the uploaded file, and directory - the name of the subdirectory where it was loaded.
    • For a site on a subdomain:
      • If the file was uploaded directly to the root directory - http://subdomain.example.com/file.phpwhere file.php Is the name of the uploaded file.
      • If the file was uploaded to any of the subdirectories - http://subdomain.example.com/directory/file.phpwhere file.php Is the name of the uploaded file, and directory - the name of the subdirectory where it was loaded.
  5. Check the availability of the downloaded file from the link.