Hi there. My question is similar to paranoid_androd’s from September but slightly different. I have a hand-coded html website with several images, docs, and a css stylesheet. After looking at some previous discussions in the community, I uploaded all the html files in the folder public_html but my site has not updated. I looked at the site publisher from the cPanel home but it asks me to select a theme. I want to keep my original theme and simply publish the website. What do I need to do to publish my site?
All you have to do is delete the default.html file that was in your account by default (that’s the splash page for all new accounts created) and I would rename home.html to index.html so that it loads automatically without typing that into the browser. Once that’s done clear your browser cache following this guide and you should be good to go! Refreshyourcache.com - The Guide to Clear your Browser Cache!
I renamed my home.html file “index.html” and now my website loads without the “/home.html” which is very nice! However, all of my other pages still have the “.html” at the end of the url. Is there a way for me to fix that?
I found this guide which seems to work Removing file extensions in the htaccess file via cPanel access. I added the .htaccess file to your account with the code specific for html files. Now you can use URLs like http://cejacobson.com/about and it will work. You’ll need to update your menu and I would recommend you edit the filenames to remove any spaces.
I’ve seen the alternative done which is to create folders for each menu item and then put the page in the folder as index.html. Folder names show up as /foldername/ at the end of a URL so you can get clean URLs that way but I think the .htaccess trick is a bit more elegant. You can just name the files what you want them to show up as in the URL.
For Addon domains if navigating through the File Manager I would just find the folder associated with that domain (usually either a folder named after the domain in the home directory or in public_html). The popup and options for File Manager has changed a bit from that guide based on the screenshots I’m seeing but it’s just a shortcut to go to the right directory. You can confirm which directory is associated with a domain from the Domains > Addon Domains area.