SEO gone mad...
itpp2012
nginx-forum at nginx.us
Tue Oct 13 11:19:02 UTC 2015
Lukas Tribus Wrote:
-------------------------------------------------------
> But *not* with "/".
You can, see my map example, used here to redirect http to https except root
(/).
site.com => tell user we've gone to ssl in plain http
site.com/ => tell user we've gone to ssl in plain http
site.com/support => 301 redirect to ssl
The challenge here is to redirect without ending up in a loop as "name" and
"name/" are different to map but the same to a location block.
Maybe instead of a 301 do a rewrite/break, ea. "/" => "/index.html".
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,262128,262147#msg-262147
More information about the nginx
mailing list