Developing static files on the local filesystem I use index.html instead
of / for the home page.
When I push them to the remote server I want
http://domain.com/index.html to be redirected to http://domain.com/ for
SEO reasons.
I’ve Googled but the best I seem to be able to achieve is a redirect
loop. What do I need to do?
Here are my failed rules :
rewrite ^index.html$ $scheme://domain.com/ permanent;
rewrite /index.html $scheme://domain.com/ permanent;
location = /index.html {
rewrite ^(.*) $scheme://domain.com/ permanent;
}
Thanks.
Posted at Nginx Forum: