InMotion Hosting Support Center

How can I access directories that are on the same level of the...

Category: How To

n/a Points
2015-08-12 5:21 am EST

Hits: 406
How can I access directories that are on the same level of the public_html folder?

consider this (Same numbering means same leveling in the directory) I have:

[1] other folder (along public_html)
[2] folder one
[3] folder two
-> image.jpg (other folder/folder one/ folder two/image.jpg)
[1] public_html

How can I call image.jpg from that directory? This is a limitation so far with I am using, that I can only access the file from there due to framework constrains.
Thanks for the answer.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



42,973 Points
2015-08-12 8:13 am EST

Sorry for the problem accessing files under the public_html. Based on the information you have provided we don't know if you're trying to get to the file via a browser, through FTP, or through SSH.

If you're in a browser, you can access files in PUBLIC_HTML by simply typing in the domain name and then a '/', then the file name. Public_html is the root of the primary domain (e.g.

If you're making an FTP account, and you want that FTP account to have PUBLIC_HTML access, then you need to change the root folder when you create the account - otherwise, it will only have access to the files BELOW the created account. If you login to FTP with your cPanel user name, then you immediately have access to ALL of the files under your account.

If you're using SSH, then you would have to CD (change directory) into the public_html folder to see the files.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.

You must login before you can post a comment about this answer.

Hello, I'm actually the one who posted the question. I logged in to be able to comment back.

I am referring to accessing the file from my site. You see, I have images that I have stored away from the public_html directory (as illustrated in the original question) and I wish to call them, perharps through a <img> tag or by inserting it inside a <div> tag. I have trouble locating the file through the "src" attribute of a <img> tag.

Thanks for the help!
3 Points
2015-08-12 9:33 am EST
Hello Laverin,

If you're trying to create a link referring to a path for the website, the files need to be in the document root for the site. By default, the document root is "public_html". For example, if you're referring to a file inside the website for an image, then the code may look something like: <img src="http://domain _name/files/image.jpg" />

You can change the document root, but it should not be necessary. I'm not sure why you're having trouble "locating" a file - you can see it clearly using file manager. The files for your website should be WITHIN the document root folder.

I hope that helps to explain it better. If you have any further questions or comments, please let us know.

Arnel C.
42,973 Points
2015-08-12 2:18 pm EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!