Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 5

Hosting a saved webpage?

Solved! Go to Solution.

I'm trying to host a saved webpage (ie. chrome webpage complete or safari's webarchive) using github pages for a school project. While the html file opens on github pages just fine, it seems that the saved webpage includes some php and js for styling (with css, I believe all of them are used), and so styling is not visible. I know php is not usable on GitHub pages (static pages only), but the webpage opens without a problem locally, making me wonder if it's an issue/incompatibility with GitHub pages. Here is the source code 


thanks in advance!


e: also here is what it looks like right now, styleless 

4 Replies
Ground Controller Lvl 2
Message 2 of 5

Re: Hosting a saved webpage?

Hello Jeron,

I'm looking at the repo you linked, is this the one you've been using for Github Pages? It will not work because the name of the repo must be

In order for your domain to work

Copilot Lvl 2
Message 3 of 5

Re: Hosting a saved webpage?

Thanks for the reply, that is the repo I am using, domain is not the issue and the site is accessible. The issue is that it is not using the style files that are in that repo 

Community Manager
Message 4 of 5

Re: Hosting a saved webpage?

Hi @ThisIsJeron,


Thanks for being here! You have this line on your index.html

link rel="stylesheet" href="./Ward Goodenough - Wikipedia_files/load.php

Which indicate to load a PHP file. GitHub pages hosting service is intended to host static web pages for GitHub users.”, PHP is not static therefore it will not execute. 


I hope this helps!



Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Ground Controller Lvl 1
Message 5 of 5

Re: Hosting a saved webpage?

Yeah, I had the same problem. Use: