Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 3

Sub-directory redirects to 404 page at root instead of index.html inside

Solved! Go to Solution.

My site has a 404 page that just redirects to the index.html at root (e.g. www.param.me/foo redirects to www.param.me since it doesn't exist) That works as expected...

 

However, I have a sub-directory called /old with an index.html inside. When I navigate to www.param.me/old, instead of redirecting to www.param.me/old/index.html, it redirects to the root 404 page

 

Github repo

 

EDIT: I checked back 4 hours later and it seems to work now... I guess Github Pages just needed some time to recognize /old as a valid sub-directory

2 Replies
Pilot Lvl 1
Message 2 of 3

Re: 404 page at root prevents index.html in sub-directory

Solution
Copilot Lvl 3
Message 3 of 3

Re: Sub-directory redirects to 404 page at root instead of index.html inside

I checked back 4 hours later and it seems to work now... I guess Github Pages just needed some time to recognize /old as a valid sub-directory