Hi there,
I have experienced problems uploading a website with the web hosting manager.
Here is what I did:
I made a website (HTML5) and tested it with Mozilla Firefox, Chrome and Edge. The website shows up quite normal on them.
My website consists of index.html and two other files inthe main folder. Then there are 2 folders - assets and images each with sub-folders as follows:
Main Folder
* assets
** css
*** images
** fonts
** js
*** ie
* images
** fulls
** thumbs
2 .jpg files
With the web hosting manager I uploaded index.html and the other 2 files in the Main folder, then both *assets an * images folders.
4, Thus uploaded website appears in the safe browser without any graphics, just items listed one below another.
The WHM UI is hard to understand - the two options file/folders don’t seem to do what I would expect - so check what it has actually done, but I found it was possible for it to mess up the folder structure in ways you can’t then fix.
I’m trying to remember what I ended up doing which worked but am not sure as I’ve not done that for a while. Maybe @JPL can give definitive instructions?
Please note this advice is one stage above “Switch it off and then back on again” - but only one stage above.
Somebody who actually knows what they are talking about will be around to offer a better solution soon.
Yes, you can. When you select a folder the files and folders below the selected folder are uploaded but not the selected folder itself.
I have just tested it by reorganizing and reuploading my test safe site on community network. The file hierarchy is now the following on my PC:
xtest
index.html
img
safe_logo_blue.svg
(index.html references img/safe_logo_blue.svg)
In this structure it doesn’t work if you upload index.html and then img folder because safe_logo_blue.svg will be uploaded in the root directory.
But it works if you upload xtest directory because index.html file and img directory will be loaded in the root directory. The xtest directory name itself doesn’t appear in the safe site, only directory content appears (with img sub-directory having correctly embedded safe_logo_blue.svg file).
Notes:
The url of this very simple site is safe://test in community network.
Tested with WHM v0.5.1 and SB v0.11.0 on Windows 10.
I think @tfa has the key here. The WHM folder uploader can indeed be finicky. Your best bet to maintain folder structures are to upload the entire contents of a folder (ie the parent folder of your index.html), which will automatically upload any child dirs etc.
Watch out though, if you’ve any big folders / files that are children of that main folder, WHM will try and upload them too, burning through your PUTs