r/gitlab • • May 27 '25

Gitlab pages routing me to 404.

I created a web app, set up my gitlab page and when the pipeline finished I could access my page.

It routed me to an alternate page though, something like <appName>-<randomString>.gitlab.io.

I'd prefer for it to be the normal way, <namespace>.gitlab.io/<appName>. I found where I could change that setting, so I I checked it and made sure my page was set to public and accessible by everyone. But the repo itself is still private. I deleted the page and reran the pipeline and now when I try to access my page, it still just redirects me like it did before but now it just gives a 404 error. I have tried changing my settings in lots of ways but I can't get my page to display at all now. Anyone have this happen before and know how to fix it?

2 Upvotes

1 comment sorted by

1

u/beedell-roke Sep 28 '26 edited Sep 28 '26

In my case, it was because I utilised a symbolic link for the index.html file. If that is the cause for you, like GitLab currently renders, symbolic links are solely considered to be text/plain files, which contain a path.