mywebsite.com won't load but https://mywebsite.com works

I have a website hosted on Linode, pbcdata.com. But when I type "pbcdata.com" in my browser, I get the error "This site can't be reached."

But if I type https://pbcdata.com, it loads just fine.

My DNS records on Linode look like this.

https://imgur.com/a/3NnL0NN

1 Reply

This is not a DNS issue…it's an issue with how your web site is configured. You have no configuration for your web server to respond to http://pbcdata.com. Access to a non-SSL site is not guaranteed when you configure an SSL site. You should redirect

http://pbcdata.com

to

https://pbcdata.com

In apache2 you can do this by adding the following to the configuration of your website:

Redirect permanent / https://pbcdata.com/

OR

configure your browser to do this redirect by default. YMMV.

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct