Site keeps redirecting to https after disabling lets encrypt


Hi, I had lets encrypt enabled in one of my sites and then I wanted to turned it off. I did so as instructed, by executing the command ee site update --letsencrypt=off. But my site keeps redictering to https. what other steps I need to implement in order to redirect all requests to http again. Below are my nginx conf. any suggestions would be highly appreciated . thanks!

server { server_name; return 301$request_uri; }

server {


access_log /var/log/nginx/ rt_cache;
error_log /var/log/nginx/;

root /var/www/;

index index.php index.html index.htm;

include common/wpfc-php7.conf;

include common/wpcommon-php7.conf;
include common/locations-php7.conf;
include /var/www/*.conf;



Check this location /etc/nginx/conf.d and if there’s a file

edit it and remove or comment out the following line in the server block like so:

server {
        listen 80;
        #return 301$request_uri;


If the answer from tyrro don’t solve your problem, try with another browser because modern browser like chrome will definitively follow a 301 redirect. Clear your cache and cookies.


Hi tyrro, I found the file “” instead of the file you mentioned. So I assume your solution is not applicable for this file ?