The company I am working for has asked me to optimize their site for them. No problem of course but by doing this it will be necessary to create new folder names and such, which thus means that some files will be moved. I think the best way to prevent 404 errors or duplicate content is to use the .htaccess file and set-up some 301 re-directs. Will the code below do the trick or do I need to add more information? I have never set-up a 301 before so I wanted to be sure. I've done a search but couldn't find anything on this forum. Thanks in advance!
Options -Indexes redirect 301 /products/index.html http://www.mydomain.com/optimized_name/index.html redirect 301 /products/1/index.html http://www.mydomain.com/optimized_name/1/index.htmlDo I need to add a space between each line? Should I keep the existing files or remove them?









