Aral Roca
Aral Roca

Reputation: 5889

GitHub pages: Bad references in custom domain

I have a project running well in GitHub pages (myusername.github.io/projectname) and I want to link to a custom domain (www.mydomain.com).

I followed these steps:

But always my problem is the same... Is trying to reference all the images, scripts and styles to www.mydomain.com/projectname/ when are located in the root www.mydomain.com ... And the project is not loading well.

Somebody have the same issue? How can I fix it?

Thank you so much!

Upvotes: 0

Views: 59

Answers (1)

David Jacquel
David Jacquel

Reputation: 52779

In your index.html (gh-pages branch), you can change

<base href="/ourparkbcn/">

to

<base href="/">

Upvotes: 1

Related Questions