To prevent duplicate content, I'd like to forward my domain.com/index.html to domain.com. How do you set up .htaccess file for this? Thanks!
Sure, this should be a foolproof one. It will work regardless if your page in html, php or htm The last line will rewrite the index in your subfolders, so instead of domain.com/folder/index.html it will rewrite it to domain.com/folder/ If you only want the homepage to rewrite, simply remove the last line. Also change the yourdomain to your actual URL.