very simple question - how do I publish my .html pages to the web from the control panel?

Status
Not open for further replies.

philliph

New Member
Messages
2
Reaction score
0
Points
1
Hi all,

I am a novice in all things having to do with websites. I plan to publish and keep up a very simple professional website on x10 -- maybe 5-10 pages total, when the whole thing is completed. For now, I'd just like to publish two pages to the web: a home page, and a second page that the home page is linked to. I've built the two pages in MS Word, saving these as .html files. I've also uploaded the .html files through the control panel. But I can't figure out how to actually publish them to the www. Nor can I discern what the web address will be when they are posted. Many thanks for any support this community can offer.

Best,
Phillip H
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
The HTML files you put in the [ public_html ] folder
The main file is named [ index.html ] not [ Index.html ]
the URL for the browser is your account's main domain
 

philliph

New Member
Messages
2
Reaction score
0
Points
1
Thanks very much. I eventually discovered how to do this. The main file I saved as home.html, and this is what comes up when I type my account's main domain into a web browser. The link from this page to the other page works just fine.

Now I am wondering how to effectively include images on these pages. (I tried uploading an image to a folder, itself uploaded to public_html, but there's a problem with the link to this image in the home.html file. I don't yet know enough about the html code for displaying images to fix this manually. I will read the WIKI and see what I can find!)

Thanks again!
Phil
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
The easiest thing for you to do is to use "root relative" URLs. If you have your image files in a folder named "images" (and it's good practice to use all lower-case when naming files and folders on the web, with underscores separating things and no non-ASCII characters if you can manage it) then your image tags should look like this:

HTML:
<img src="/images/filename.jpg" alt="Descriptive text goes here">

Starting the link with a slash ("/") tells the browser to keep the "http://whatever.somedomain.tld" part of whatever page it's on at the moment and start building the URL from there. It wouldn't matter what folder your page is in in your public_html, the link will always point to a file in "public_html/images/". And if you change your domain or add a parked domain, it will still work without editing anything.
 

phoebex2

Member
Messages
55
Reaction score
16
Points
8
I was going to be all heroic and save your day, but they beat me to it. I will point out though that I find paths work fine for me without even using a beginning"/".

The only other real advice I can give is that patience and Google-ing are the most valuable disciplines I've learned when it comes to this stuff. Google is your friend, and patience is a virtue.

I hope your site turns out wonderfully, and I look forward to seeing what you do with it!
 
Status
Not open for further replies.
Top