I sent my html files to hosting, but without correct reference to the directory paths

Website URL

(please specify the URL of the site on which you are experiencing the problem)
I cannot reveal the website and its content for commercial reasons.

Error Message

(please share the FULL error message you see, if applicable)
I cannot reveal the website and its content for commercial reasons.

Other Information

I sent my html files to hosting, but without correct reference to the directory paths. How do I do that? (so that images, links and texts appear)

No info = no help

11 Likes

Wow that’s great! Did you feel good, friend, sending this little message?! Anyone who can provide useful information on how to reference directories within hosting will be welcome!

Did you when you did that yourself? Provide more information.

9 Likes

That’s what KangJL sent.

If you want to link an image living in the images directory in your HTML, then use an absolute path:

<img src="/images/my-image.png">
8 Likes

Look, it’s a super simple website, like a company manual. I did it in VS Code, using my own computer/windows directories. This way, I used Filezilla to transfer the files to the hosting. The “site” loaded and such, but I click on the menu tabs, for example, and they don’t open, the images don’t appear. I probably have to change the directory path within the code. I’ve already tried some hosting options (for example: /home/vol10_4/infinityfree.com/if0_35763644/htdocs/images_general/logo_cabecalho.png), but I still haven’t succeeded. I’ve tried changing permissions and nothing either. I’ve already tested with other templates and the pages opened, etc., only the images didn’t appear. Thanks for the support!

image

That’s the problem. htdocs is the root of your website. You don’t need to include it or anything before htdocs.

10 Likes

OK! I will make the changes here!
Thanks

1 Like

Now you understand why we needed more info?

8 Likes

It worked guys! Thank you all!

3 Likes

Thank you!

3 Likes

You’re welcome :smiley:

8 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.