Using .htaccess to redirect domain.co.uk/index.html to www.domain.co.uk
问题 I have noticed that search engines have been crawling both the domain.co.uk and www.domain.co.uk versions of a web site that I've recently developed. Using .htaccess I have been able to setup http 301 redirects so that: http://domain.co.uk is redirected to http://www.domain.co.uk and http://www.domain.co.uk/index.html is redirected to http://www.domain.co.uk However: http://domain.co.uk/index.html does not get redirected to http://www.domain.co.uk as I would expect. Instead the redirect goes