Hostgator displaying all my html files instead of index - html

I was hoping you can help with this, i only have about a week ( 10-15h) of experience with front end web development. but i cant figure this out. im trying to find the answer online but cannot locate it.
I purchased my domain name with google, uploaded my html files as well as img files to hostgator. when i go to my site, instead of it going to my index html file it displays all of them. take a look at what i mean
how do i solve this ? or if you know a link to some reading materials kindly provide it so i can learn :)

You have to put all your public pages in the public_html folder. It's the main entry point or the root of your domain name. Also, rename the Index.html file to index.html.

Related

Files not showing in htdocs

When creating a new database through PHPMyAdmin and trying to access localhost/newdatabase, I get this message:
"Object not found! The requested URL was not found on this server. If
you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404 localhost Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.9"
The file doesn't show in xampp/htdocs either, only in xampp/mysql/data.
If i create files directly in htdocs, they work perfectly on localhost/.
Why has the file not been created in htdocs?
The content of the htdocs folder are files that can be interpreted by the browser such as HTML5, CSS, JS, etc... in order to show a webpage along with it's funcionality to whoever accesses it. A database in the other hand can't directly be opened by a browser, but rather accessed within the server by a backend language like PHP, in order to get the information that can be stored in it through tables. You seem to be new to web programming, so I'd recommend to quickly google some beginner tutorials that can help you to understand the most important concepts. To take on from your kind of confusion, I'd point you to expand your knowledge on these concepts:
HTML5
CSS
PHP
MySQL
Once you get the grasp of them and identify each by their core funcionality, you'll be good on your way to make webpages. Later on you'll find yourself with demands like making your webpage look nice and clear, and also to make it load fast, but there's time for everything and the concepts I pointed are the best start for you.
if you wanna open your database URL = http://localhost/phpmyadmin/
File directory ~ xampp/htdocs for source code such as extension file .php .html .js or other.
if you wanna load localhost a URL is http://localhost:80 (auto find index file to first load)
Sample given as image folder for my code. Hope that can help you to understand xampp

Alfresco share custom page can't use images

As directed by this link I have created a custom page for Alfresco Share to use as navigation. The jar file contains images and once again as directed its in META-INF/images (this part was sort of unclear what all should be there).
Upon further research I found out that META-INF is auto generated with a manifest but I am unsure a manifest would help me.
Alright the issue I'm having is that I can't get the images out of the jar file for Alfresco Share.
I've tried this #import url("/share/res/images/Concur.ng");
I've tried hard coding links to where they say it should end up
<src="http/serverIP/share/components/image/alfresco-share-logo.ng">
I tried doing it the way they wanted it done
<i src="/res/images/ADPSelfPortal.png"> (or so I think).
<i src="share/res/images/ADPSelfPortal.png"> tried both.
I need some guidance here if I really wanted to I could just drop the file of images somewhere randomly on the server and point to their location but if they aren't logged in they shouldn't have access to these resources.
Sorry this is a mess I'm frustrated with this problem.
As it turns out the instructions were correct, the smallest typo in the name and syntax when creating the jar is extremely important for adding pages to alfresco. Although finding this information did prove difficult at the time. I mentioned in the comment above that the alfresco folder and the meta-inf folder have to be packaged in the same directory. This functionality is important so that alfresco finds all the proper supporting files. Any new files to add to the static folder must be put into the META-INF folder.

Is it OK to have more than 1 index.html on your website?

I have a index.html on my root folder of a subdomain
i.e. example.example.com/index.html
and then I made a second folder (which is located in the root folder)
example.example.com/folder/index.html
Is this good/recommended?
PS I'm pretty new to this so I have a follow up question. Does this have tie in to sitemaps in a big way and do people usually use an app to do the their "sitemapping" for them?
That's fine, but there should only be 1 per folder. The index.html is the file your webserver will serve up if another is not specified, so it is normal to have one in each directory.
As far as creating the sitemap, there are a lot of tools online that will create an XML sitemap for you and that is what people usually use.
Its ok to have multiple index.html files, may be some experts will say its not a recommended way. But in my point of view as long as you know that what's going on you can have tons of index.html .

Link not going back to home page

I have researched this to death including on this page. My index page is outside my html folder and when I hit the nav link it will not take me back home(index page). I have seen a few post on here regarding this situation, see below:
There are also two special directory names: . and ..:
. means "current directory"
.. means "parent directory"
but I have tried several see below for examples that I have tried. The index page is on/in the root directory (folder), all the other nav links work as they are in the html folder and they are up one level.
I have tried:
Index
Index
Index
Index
Out of desperation I have tried several things I knew would not work, I would really appreciate your assistance in this matter.
littleone
In my opinion the safest way is using
index
This will move the user to the root directory no matter in which directory the user currently is.
It's quite short which can be helpful too. In most cases you can omit index.html because the server uses this file automatically if you visit a directory.
I'm no web server specialist, but I'm sure you're saving your index.html in the incorrect location.
Your /html folder is your ROOT folder, anything outside of it isn't accessible via a URL. I'm sure there are ways to override that, but I have never seen anyone do this even in the most complex projects I've worked in.
For example, your site www.yoursite.com is located in the /html of your server. So if you have your index.html file outside of that folder, that file can't be accessed or served at all.
The common sense solution is to move your index.html file to the /html folder. When you do this you can then use a slash in your href, like so:
Index

Domain direction problems

I've learnt HTML and CSS from Codecademy the past two months and am sitting with 4 HTML-documents and 4 CSS-files right now ready to connect them to the Internet.
I've bought a domain, registered a webhotel and downloaded FileZilla for transferring the files. My problem is that instead of being directed to the website, I'm directed to a page that contains the headline "Index /" and the name of the folder which contains my files.
How do I fix this? I have a feeling that I have to do something with my homepage.html so that the domain directs me to that specific page.
if you sure domain connected to your webhost successfully,just upload your website to htdocs folder and rename your first page to index.html note : all the character should be lowercase
Well guys I solved the problem I encountered when accidentely "deleting" my files from FileZilla. Apparently my computer immediately downloaded the file folder when FileZilla deleted it so it was in "Downloaded Files" (don't know what the folder's called in English, I'm Swedish) all along.
Regarding my initial question I just want to thank you guys for helping me with the right answer! It's working correct now :)