Knowledgebase: cPanel
Find the URL of a File
Posted by SEOWH Admin on 09 July 2015 04:06 PM

If you want to share a web file with friends or the public, you first need to determine the path of the file. If you don't already know the path you can find that in cPanel or via your FTP client.

Files on the Primary Domain

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

  1. Log into 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 as you go along (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. Add the file name, exactly as it appears, to the end of the path

    For example:
    public_html/My_Book.pdf
    public_html/images/banner25x120.JPG
    public_html/blog/includes/Movies/bigjump.avi
     

  6. 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 to these URLs and you will see the file you uploaded

Files on Add-on Domains and Subdomains

You can even determine file URLs for add-on and subdomains. Just replace the 'public_html/subfolder/' part with the add-on or subdomain name.

For the add-on domain 'myblogdomain.com' with the document root in the blog subfolder (inside public_html) a path like 'public_html/blog/includes/Movies/bigjump.avi' would become 'http://myblogdomain.com/includes/Movies/bigjump.avi'.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion