Error 403 access denied when I do not use https

0

I created a site in ASP.NET MVC and uploaded my files to my hosting plan.

There I am entitled to a Let's Encrypt certificate for free. After activating it, an error occurred:

If I access my site like this: link works normal. But if I access like this link it gives error 403 .

Can it be something in the site code or configuration in the hosting? Has anyone gone through this?

    
asked by anonymous 01.09.2017 / 00:42

2 answers

0

Access Plesk > Dominios > meudominio.com > Configurações de Hospedagem

Check the box: Redirecionamento 301 SEO seguro permanente do HTTP para o HTTPS

Then go to Access Plesk > Dominios > meudominio.com > Configurações do IIS

Uncheck box: Exigir SSL/TLS

    
02.09.2017 / 22:37
1

Create a file at the root of your .htaccess hosting and put this code

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://italorodrigo.com.br/$1 [R,L] 
    
01.09.2017 / 00:56