Simple terms, how do I protect a .htm file?

Discussion in 'Setting-up protection' started by jasonanderson, Dec 3, 2007.

  1. jasonanderson

    jasonanderson New Member

    Joined:
    Nov 2, 2007
    Messages:
    4
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Since the FAQ is in your main directory, this complicates things. Does it need to stay there?

    If you put it into a subdirectory, like http://www.site.com/faq/index.htm
    then you can use htpasswd, new_rewrite, php_include+mod_rewrite, or php_include+auto_prepend_file protection.

    Go to your admin screen, protect directory, and set the protection up. Personally, I like new_rewrite the best for protecting whole directories of various file types.

    David

Share This Page