Can someone explain what this .htaccess does?

Discussion in 'Web Design' started by tb303, Oct 7, 2014.

  1. tb303

    tb303 Senior Member

    Joined:
    Dec 18, 2011
    Messages:
    941
    Likes Received:
    610
    Dear lounge, im posting this here for some quick views and hopefully a quick answer.

    what does this .htaccess do? Its way over my head on what i know about htaccess stuff

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /private.php [L]
    </IfModule>
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,876
    Likes Received:
    12,648
    Occupation:
    Potentate
    Location:
    Asuncion
    "If the requested resource is neither a file nor a directory, redirect to /private.php"
     
    • Thanks Thanks x 1
  3. tb303

    tb303 Senior Member

    Joined:
    Dec 18, 2011
    Messages:
    941
    Likes Received:
    610
    ah right ok. thank you.