All my sites are return 301 response code instead of 200. My sites are hosted on amazon aws and my dns are managed by cloudflare. I am using free ssl from cloudflares.
I was testing my site in third party websites. And it seems everywhere i am getting the following error:
Your server did not return a valid HTTP code (You returned 301 when you should have returned 200).
My server is configured using nginx. this is my nginx server code:
server {
listen 80;
listen 443 ssl;
root /media/6sense/www/shajao.com;
index index.html index.htm index.nginx-debian.html;
server_name shajao.com www.shajao.com;
location / {
try_files $uri$args $uri$args/ /index.html;
}
}
This is my website. https://shajao.com/