Results 1 to 3 of 3

Thread: [RESOLVED] htaccess problem

  1. #1
    Fanatic Member
    Join Date
    Aug 07
    Posts
    806

    Resolved [RESOLVED] htaccess problem

    i have a directory on the path

    http://site.com/dir

    in this dir, i have few files that i do not want anyone to access directly by entering the URL in the browser.

    like

    http://site.com/dir/file.cer
    http://site.com/dir/file.pem
    http://site.com/conf.conf

    something like these files.

    i can not move these files behind the webroot due to some reasons.

    So please help me what should i write in my htaccess to achieve this?

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 08
    Location
    Trivandrum, Kerala, India
    Posts
    7,557

    Re: htaccess problem

    Code:
    <Files "conf.conf">
    Order Allow,Deny
    Deny from All
    </Files>
    More: http://www.askapache.com/htaccess/us...-htaccess.html


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  3. #3
    Fanatic Member
    Join Date
    Aug 07
    Posts
    806

    Re: htaccess problem

    thank you very much akhileshbc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •