# Https site doesn't apply css stylesheets

**URL:** <https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756>\
**Category:** support\
**Created:** [December 4, 2022, 7:29pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756 "2022-12-04T19:29:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erwan](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@Erwan](https://discourse.gohugo.io/u/Erwan)\
**Post date:** [December 4, 2022, 7:29pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756/1 "2022-12-04T19:29:30Z")

</div>

Hi,

My hugo site appears normally if I use the http address but the style is completely broken if I open with the https address.

I’m new to web hosting so maybe it’s a mistake in my config, please let me know. If it’s relevant, I can see that I have ssl enabled, I think this is the default config with my provider (ovh).

Thanks!

---

<div class="post-metadata">

**Author:** ![nekr0z](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nekr0z/32/18320_2.png) [@nekr0z](https://discourse.gohugo.io/u/nekr0z)\
**Post date:** [December 4, 2022, 7:36pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756/2 "2022-12-04T19:36:46Z")

</div>

Might be the config, but it’s hard to tell without at least seeing the site (or, preferrably, your source for it).

---

<div class="post-metadata">

**Author:** ![tut](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tut](https://discourse.gohugo.io/u/tut)\
**Post date:** [December 4, 2022, 7:57pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756/3 "2022-12-04T19:57:02Z")

</div>

What’s your `baseURL` in the configuration file? Make sure it is the same (including the `https` protocol) as your main site.

---

<div class="post-metadata">

**Author:** ![Erwan](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@Erwan](https://discourse.gohugo.io/u/Erwan)\
**Post date:** [December 4, 2022, 11:53pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756/4 "2022-12-04T23:53:39Z")

</div>

Great advice! that was exactly it: I had the wrong `http` instead of `https` in the config file.

I would certainly have lost of a lot of time on it without you, thank you so much 🙂

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [December 6, 2022, 11:53pm UTC](https://discourse.gohugo.io/t/https-site-doesnt-apply-css-stylesheets/41756/5 "2022-12-06T23:53:56Z")

</div>

Closed on December 6, 2022, 11:53pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
