Protect website folders by .htaccess

On August 6, 2009, in PHP, Tips, Tricks, by admin

<IfModule dir_module>
DirectoryIndex index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_URI} !(css)
RewriteCond %{REQUEST_URI} !(js)
RewriteCond %{REQUEST_URI} !(images)
RewriteCond %{REQUEST_URI} !(videos)
RewriteCond %{REQUEST_URI} !(cache)

</IfModule>

8 Responses to Protect website folders by .htaccess

  1. Sharron Vela says:

    Every day I read this blog and it pleases me to be written here posts.

  2. Anonymous says:

    I will be really thankful to the author of the post to make this lovely and informative article live for us. We actually appreciate ur effort. Sustain the good work. . . .

  3. Anonymous says:

    Wow, that’s an extremely nice read!

  4. Anonymous says:

    I used to be just browsing here and there and also got you just read this post. I must say that we’re from the hand of luck today in any other case getting such an excellent post to read wouldn’t have been achievable in my opinion, at the very least. Really appreciate your content.

  5. Len Labruyere says:

    Extremely good blog and worth recommending.

  6. Verna Persinger says:

    Sometimes I visit various blogs but this post smashed me. Best.

  7. NLP says:

    I’d must verify with you here. Which is not something I normally do! I enjoy reading a post that will make individuals think. Also, thanks for allowing me to remark!

  8. Anonymous says:

    “Hello,I really like perusing by means of your blog, I wished to depart a small comment to assistance you and would like you a excellent continuation

Leave a Reply