I'm currently using these configurations for my sites: HTML: RewriteEngine OnRewriteBase / # redirect html pages to the root domainRewriteRule ^index\.html$ / [NC,R,L] ErrorDocument 404 /index.html But I'm kind of having a tough time understanding the difference between 301 permanent and 302 temporary. I read everywhere that the redirect is no different visually, but 302 pass no value where as 301 pass close to 100%. My .htaccess file is working for invalid parameters such as site.com/foo/foo and redirect them to the home page, but how do I know if the redirect is a 301 or a 302? Also does anyone know the directive in an htaccess file that manipulates the browser to think all files are folders? For example instead of site.com/file.html to site.com/file/?