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

Can someone explain what this .htaccess does?

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

  1. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    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,468
    Likes Received:
    10,148
    "If the requested resource is neither a file nor a directory, redirect to /private.php"
     
    • Thanks Thanks x 1
  3. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    ah right ok. thank you.