An Oracle blog about NetBeans for PHP

How to set up NetBeans to view .htaccess in Project or Files view

A few days ago I run in an issue that by default NetBeans doesn't show files which starts with dot, which is exactly the case of .htaccess file. This is the tip how to do it.

Go to the Options->Miscellaneous->Files and the content of Ingnored Files Pattern field replace with:


If you have already .htaccess in the project and the file is not still displayed, then close the project and open again. There is issue #139582, which is entered against the project.

Join the discussion

Comments ( 4 )
  • Jacob Thursday, July 10, 2008

    I'm using Netbean 6.5 Milestone 1.

    In my Options->Miscellaneous I don't have Files, but File Associations.

    Which doesn't have the File Ignored by the IDE section. Is this only in the latest builds?

  • Petr Thursday, July 10, 2008

    Hi Jacon,

    you are true. I'm sorry, I haven't check it, whether this is in M1. M1 for me is old build and things are changing very quickly.

    Anyway I think that defining the query through regular expression is to hard for many users and our team entered issue http://www.netbeans.org/issues/show_bug.cgi?id=139023, where we are asking for improving the situation. If you want, you can express your thought there or change the priority, if you thing that it doesn't reflect the reality.

    I'm sorry for confusing again.



  • Arne Wednesday, June 30, 2010


    Im using Netbeans IDE 6.9 but still have same problem with files beginning with dot.

    I tried to change "File Ignore Pattern" to




    but no chance to get access to the dot-Files!

    Closing and reopen project or the complete IDE doesn't change anything.

    Wahts the matter? Where is my mistake?

    Thanks a lot.

    ps: netbeans ide 6.9 on window xp sp2

  • Patrick Wednesday, November 13, 2013

    Personnally, I also want to see .htpasswd files and I sometimes also have some variations of .htaccess files (for example if I quickly have to put the a site offline and serve some static pages instead).

    This is why I changed the end of the pattern in order to see all files starting with ".ht" :


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.