Home
Support Forums

Hugo config.toml working when using the subdomain Netlify provides, but not my actual domain

So basically, I was having a similar trouble to others, where my site built on Hugo was showing only the bare html. During my searches, it seems the problem is pointing the wrong url at config.toml.

I tried “tetizeraz.online”, “https://tetizeraz.online” and “https:www.tetizeraz.online”, but only “https://ecstatic-golick-b291f7.netlify.app/” worked when I changed the config.toml. Since that url can change at any time, and my domain too, I would like to be sure I can edit the config.toml with the right domain that I own, since what I’m doing seems more like a workaround rather than the correct thing. Is it possible to use my actual domain on Netlify?

Oh, and since this may be a DNS issue, I did notice that typing “tetizeraz.online” in the browser redirected to my domain registrar Hostinger. But I already did change my DNS there to the DNS provided by Netlify, and they work in “www.tetizeraz.online” and “htttps://tetizeraz.online”, but not the http link.

Hi @Tetizeraz,

Would you be able to help us with your repo?

Here it is.

Hi @Tetizeraz,

What you really should do is, change this:

to:

  <link type="text/css" rel="stylesheet" href="/css/print.css" media="print">
  <link type="text/css" rel="stylesheet" href="/css/poole.css">
  <link type="text/css" rel="stylesheet" href="/css/syntax.css">
  <link type="text/css" rel="stylesheet" href="/css/hyde.css">

Basically, make the URLs relative instead of absolute. This way, it won’t matter what domain is set in config.toml, it’d always correctly load the assets. This is just 1 file, there might be more such references. This file is: /themes/hyde/layouts/partials/head.html.

However, if you wish to edit in config.toml, the correct value would be https://www.tetizeraz.online/

Thank you, changing the config file to the value you provided worked!