+ 2
How do I host websites on GitHub from a folder?
Ive a repository. Inside of it I've a lot of folders. Inside of each folder,Ive a project. So, how do I host my website only from that project? Is there any way? Thanks in advance
9 ответов
+ 3
You need to make an index.html file. It is the default name used for the default page of a website.
After making the file, add links to each home page in your folder, and host the website. You can host it by clicking on your repository -> settings, and then enable github pages.
You can find your page then in [username].github.io/[repositoryname]
+ 2
Here are the basic steps by GitHub for GitHub
https://gist.github.com/TylerFisher/6127328
+ 2
Aymane Boukrouh yeah this one https://github.com/Sajid1500/Learn-ex/tree/master/Introduction%20to%20CSS/Lesson%203. I want to host from this project only
+ 2
sajid chowdhury your index.html must be outside any folders, I only see three folders on your rep, without any other files.
+ 1
Can you share the link to your repository here?
0
Aymane Boukrouh I already have an index.html file. I also got the link but its says 404 page not found
0
Aymane Boukrouh Can't I do it right from there? I only styles and files to be used from that folder.
0
You have to turn on GitHub pages. If you use (yourusername).github.io as your repo name, it will automatically be the start if you want that.
0
hey Sajib bhai did you find the solution please share it with us! I am stuck :/