1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Htaccess file Help!

Discussion in 'Black Hat SEO' started by alexel, Dec 4, 2015.

  1. alexel

    alexel Jr. VIP Jr. VIP

    Feb 20, 2015
    Likes Received:
    New York
    I'm currently using these configurations for my sites:
    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/?