Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.5.2.8. Place file on hosting and get link to it
Important points:
- It is recommended to use Latin characters in file names. When uploading files with characters from national alphabets in their names, you may need to convert the encoding of file names via the console.
- If the file name contains uppercase characters (capital letters), it must be specified exactly the same way in the link. It is recommended to use lowercase characters (small letters) in file names.
- When the root directory of the site is changed, the path for uploading the file will also change. The directory specified in the settings will be added to it.
- The accessibility of the uploaded file may be affected by access restrictions specified in the .htaccess file.
- Open the file manager or connect to the hosting using any FTP client.
- Navigate to the root directory of the site where the required file will be hosted, or its subdirectory. The path to the root directory looks like this:
- For the site on the main domain —
example.com/www, whereexample.comis the name of your site. - For a site on the subdomain —
example.com/subdomain, whereexample.comis the name of your site, andsubdomainis the name of the subdomain of this site.
- Upload a file from your PC to this directory. The upload process using the file manager is described in detail here.
- Direct links to the uploaded file will appear as follows:
- For the site on the main domain:
- If the file was uploaded directly to the root directory —
http://example.com/file.php, wherefile.phpis the name of the uploaded file. - If the file was uploaded to any of the subdirectories —
http://example.com/directory/file.php, wherefile.phpis the name of the uploaded file, anddirectoryis the name of the subdirectory where it was uploaded.
- For the site on the subdomain:
- If the file was uploaded directly to the root directory —
http://subdomain.example.com/file.php, wherefile.phpis the name of the uploaded file. - If the file was uploaded to any of the subdirectories —
http://subdomain.example.com/directory/file.php, wherefile.phpis the name of the uploaded file, anddirectoryis the name of the subdirectory where it was uploaded.
- Check the availability of the uploaded file via the link.
(5)