fossasia/loklak_webclient

loklak.net and www.loklak.net though are the same hit a CORS error while creating walls

Closed this issue · 2 comments

The walls only work on loklak.net and not with www.loklak.net they'll forever load, Would it be possible to redirect all traffic from www.loklak.net => loklak.net from the DNS settings ?

Or probably just in nginx

server {
    server_name www.loklak.net;
    rewrite ^/(.*)$ http://loklak.net/$1 permanent;
}

Should be enough for a 301 redirect from www to non-www, What do you think @treba123 @Orbiter