Hello fellow colleges..
I have a unique problem.. a friend of mine created a website for me.. The problem is that he had organized everything in good manner.. ie) folder for images, js, css.. etc.
I tried to upload it onto the server but its showing me the root folder view.. when i paste the index file outside the html folder. Then only the index page works and the remaining pages are not accessible.. i tried my best to trouble shoot it but.. i cant understand the prob :(

Dani AI

Generated

Useful, focused troubleshooting steps and fixes that build on ’s point about keeping the server layout the same as your local copy. The goal is to quickly identify whether the issue is a wrong remote folder, path/case mismatch, permission/processing problem, or an upload/transfer setting — then fix it with minimal guesswork.

Start with quick checks (these tell you exactly what is failing):

  • Open your browser DevTools -> Network, reload the page, and note any 404/403/500 for assets or pages. The request URL shown is the single best clue.
  • Try a direct request to a missing asset in a terminal or browser to see the status:
curl -I https://yourdomain.com/path/to/image.png
  • Check the raw URL shown in the Network panel — does it begin with /, include the correct folder name, or point to a different domain/subfolder?

Likely causes and how to confirm/fix each:

  • Wrong remote folder: confirm the web root (common names: public_html, www, htdocs). Upload into that directory or move files there.
  • Case sensitivity: on Windows logo.png and Logo.png are the same; on Linux they are different. Match exact filenames.
  • Broken relative/absolute paths: avoid local absolute paths (C:\ or file://). If pages live in subfolders, consider a site-wide base tag:
<base href="https://yourdomain.com/">
  • Permissions and server processing: files should usually be 644 and folders 755. If pages use PHP/SSI, ensure they are uploaded with the right extension and the server processes them.
  • .htaccess / rewrite rules: temporarily rename it to see if that restores access.

Preventive tips: upload a small known file and access it by URL to confirm you’re in the right folder; use the server file manager to cross-check structure; keep links relative when possible; and when contacting host support include a failing URL and the expected filepath so they can check server logs.

Recommended Answers

All 3 Replies

When i check the website offline it works but when i upload it.. it doesnt work.. ie) images doesnt get loaded and so on.. Even i check ed out the folder spellings.. none has error..

First off -- the items on your server should be in the same folders as the items on your computer. Usually the index file goes in the root (this may be an html folder on some hosts) and all other pages, images, js, etc., in the same place unless they are in folders. You might call your host to see what's wrong as it's very hard to figure out on this forum unless you draw us a diagram. You may have loaded everything into the wrong folder. Also if there are includes involved you may also need an htaccess file to load them.

I really appreciate your comment.. Any how i have upgraded to next level of problem, and the problem is.. I was working on it.. since i was using filezilla to upload my files, for a change i tried with cpanel, it works.. I really cant understand hw it happend. :'(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.