Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use other than index.html for Github pages

I have recently started using github pages and so far I am using the default index.html as my main page. How do I use another page as my default page? For example if in my gh-pages branch I have my html in a folder src/. How do I set ./src/index.html as my default instead of ./index.html?

like image 435
Tiagojdferreira Avatar asked Dec 06 '14 09:12

Tiagojdferreira


People also ask

Can you use HTML in GitHub Pages?

GitHub Pages lets you take a GitHub repository and turn it into a webpage. In other words, you can use a GitHub repository to host your HTML, CSS, and JavaScript files.

Can you use bootstrap on GitHub Pages?

GitHub Pages is a great way to get a simple, static website published online - especially when you use a predesigned theme from Start Bootstrap!

Does GitHub Pages support HTTP?

About HTTPS and GitHub PagesAll GitHub Pages sites, including sites that are correctly configured with a custom domain, support HTTPS and HTTPS enforcement.

Does GitHub Pages support dynamic website?

It can be used to crawl dynamic web pages that require JavaScript to render data.


1 Answers

Create dummy index.html and put this in the header

<meta http-equiv="refresh" content="0; url=http://mysite.github.io/folder/index.html" />

Change http://mysite.github.io/folder/index.html to your desired url.

like image 68
Dmitry Shilyaev Avatar answered Sep 30 '22 14:09

Dmitry Shilyaev