Redirection non-www to www problem

Looks like you have some kind of redirect loop which keeps prepending www:

osiris@erazer ~ $ curl -LIv http://eter7.com/
*   Trying 216.238.106.248:80...
* Connected to eter7.com (216.238.106.248) port 80 (#0)
> HEAD / HTTP/1.1
> Host: eter7.com
> User-Agent: curl/7.84.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: nginx/1.18.0 (Ubuntu)
Server: nginx/1.18.0 (Ubuntu)
< Date: Sun, 12 Feb 2023 22:04:17 GMT
Date: Sun, 12 Feb 2023 22:04:17 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 178
Content-Length: 178
< Connection: keep-alive
Connection: keep-alive
< Location: http://www.eter7.com/
Location: http://www.eter7.com/

< 
* Connection #0 to host eter7.com left intact
* Issue another request to this URL: 'http://www.eter7.com/'
*   Trying 216.238.106.248:80...
* Connected to www.eter7.com (216.238.106.248) port 80 (#1)
> HEAD / HTTP/1.1
> Host: www.eter7.com
> User-Agent: curl/7.84.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: nginx/1.18.0 (Ubuntu)
Server: nginx/1.18.0 (Ubuntu)
< Date: Sun, 12 Feb 2023 22:04:18 GMT
Date: Sun, 12 Feb 2023 22:04:18 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 178
Content-Length: 178
< Connection: keep-alive
Connection: keep-alive
< Location: http://www.www.eter7.com/
Location: http://www.www.eter7.com/

< 
* Connection #1 to host www.eter7.com left intact
* Issue another request to this URL: 'http://www.www.eter7.com/'
* getaddrinfo(3) failed for www.www.eter7.com:80
* Could not resolve host: www.www.eter7.com
* Closing connection 2
curl: (6) Could not resolve host: www.www.eter7.com
osiris@erazer ~ $ 

And it's not redirecting to HTTPS.

This dynamic piece is the issue I think.

4 Likes