Https://www + redirected you too many times

Hello I just enabled https for my website but I got error

The page isn’t working redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS

Here is the config file in sites-available

server { server_name; access_log /var/log/nginx/ rt_cache; error_log /var/log/nginx/;

root /var/www/;
index index.php index.html index.htm;
include common/w3tc.conf;
include common/wpcommon.conf;
include common/locations.conf;
include /var/www/*.conf;


Below is the file

server {

    listen 80;
    return 301$request_uri;



It looks like you already solved the issue. There is no redirection loop here, site displays just fine.

@Trung_Hai – Yeah, it looks like you’ve resolved your redirects issue. However, I noticed you do have insecure resources loading which you’ll want to fix up.

Thanks for your replies, seem it has been worked but I still get the cache version. Confirm site is working now.

@janiosarmento thanks, I’ve updated the url so it’s fine now.