How to Find the URL of a File

If you want to share a web file with friends or the public, you first need to determine the path of the file.

Files on the Primary Domain

To determine the URL for files hosted on your primary domain:

  1. Log in to FTP or File Manager and note the parent folder where your file is stored (normally the public_html folder).
  2. Double-click the appropriate folder icon to navigate inside public_html. 
  3. If you see the file here, you are done. If you need to navigate inside more folders to find your file, note each folder. (Folder names are case-sensitive, so you must use the exact capitalization and spelling.)
  4. Once you locate your file, you should have noted the full path (a list of the folders you must go inside, respectively, to find that file).
  5. Now, add the file name, exactly as it appears, to the end of the path. (File names are case-sensitive, so you must use the exact capitalization and spelling.)
    For example:
    public_html/My_Book.pdf
    public_html/images/banner25x120.JPG
    public_html/blog/includes/Movies/bigjump.avi
  6. Almost there! Now you just need to replace public_html with http:// and your primary domain name.
    For example:
    http://primarydomain.com/My_Book.pdf
    http://primarydomain.com/images/banner25x120.JPG
    http://primarydomain.com/blog/includes/Movies/bigjump.avi
  7. Try to browse these URL's and you will see the file you uploaded.

Files on Addon Domains and Subdomains

You can even determine file URLs for addon and subdomains. Just replace thepublic_html/subfolder/ part with the addon or subdomain name.

For the addon domain myblogdomain.com with the document root in the blog subfolder (inside public_html). A path likepublic_html/blog/includes/Movies/bigjump.avi would become:

http://myblogdomain.com/includes/Movies/bigjump.avi
  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

How Can I Restore a Fantastico Backup?

Create/Restore Backup with cPanel Backups The easiest way to manage Fantastico backups is via...

How to view hidden files in Cpanel

Hidden Files in Cpanel To increase your site security, some files may be hidden. There is an...

How to Install WHMCS

WHMCS is an all-in-one client management, billing & support solution for online...

Step by step Guide: How to Upload a File using the File Manager

You can upload your files directly through cPanel using the File Manager. File Manager is a web...

How To Install A Web Server On Centos. Installing Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6

This is a step by step guide on installing A Web Server On Centos 6. It will guide you on...

Powered by WHMCompleteSolution