4 ms·
Off-topic, but what happened to "www."? More and more sites recently seem to be going without a www subdomain. In this case, "www.jgthms.com" goes to a Gandi p
by thaumaturgy 13y ago
Off-topic, but what happened to "www."? More and more sites recently seem to be going without a www subdomain.
In this case, "www.jgthms.com" goes to a Gandi parking page. (!) In other cases, the connection simply times out or the server returns an error page.
- ceejayoz 13y agohttp://no-www.org/ http://no-www.org/
- twic 13y agoWe've also generated at least two direct competitors: http://yes-www.org - A site that suggests that all domains have www. subdomains http://extra-www.org - A site that suggests that all domains have two www. subdomains. (www.www.domain.com) Fantastic. That is old-school internet humour.
- verisimilitude 13y agoMy understanding is that the number of people who like leaving off the www exceeds the number who remember to redirect all requests correctly. I believe the nginx server block would read something like: server_name www.website.tld; rewrite ^ http://website.tld$request_uri? permanent;
- DonPellegrino 13y agoUse return instead of rewrite. server { listen 80; server_name www.website.tld; return 301 http://website.tld$request_uri; }
- scrollaway 13y agoPlease back up your claims with a reason - all you're giving us is a different way to do things here.
- peferron 13y agohttp://wiki.nginx.org/Pitfalls#Taxing_Rewrites http://wiki.nginx.org/Pitfalls#Taxing_Rewrites
- lewaldman 13y agoSEO. And it's just one reason.
- scrollaway 13y agoWhat does SEO have to do with this?
- lewaldman 13y agoIt counts as duplicated content. A 301 is a redirect. It sends to the client the instruction to reload the page in the given Address. A rewrite happens only on the server side. So for the client it's like two different sites with the same content, and this hurts your ranking. Now... Ok that I didn't explained that on the parent post (didn't thought it was needed), but is it enough reason to a downvote? :P edit: fixed grammar.
- scrollaway 13y agoRewrites in nginx are redirects.
- peferron 13y agoOnly a subset of rewrites are redirects. A common usecase for rewrites is to change the request URI to make it match another location block in your config, but without returning 301 or 302 or any other redirect code to the client.
- tombrossman 13y agoGandi has a simple redirect/forwarding option in their management panel which handles this kind of thing, so it looks like he's overlooked that? http://wiki.gandi.net/en/dns/zone/www http://wiki.gandi.net/en/dns/zone/www