OSDN Git Service

Now PukiWiki version is "1.5.2"
[pukiwiki/pukiwiki.git] / .htaccess
1 # Apache .htaccess for PukiWiki
2 #
3 # $Id: .htaccess,v 1.14 2005/04/29 11:51:31 henoheno Exp $
4 # Copyright (C)
5 #   2002-2005 PukiWiki Developers Team
6 #   2001      Originally written by yu-ji
7 # License: GPL v2 or (at your option) any later version
8 #
9 # NOTE: Correct permission of this file 644(or 604)
10
11 ## Access control by Order/Allow/Deny directives
12 ## needs 'AllowOverride Limit' at httpd.conf
13
14 # Prohibit direct access to .htaccess, .htpasswd or others
15 # (If it's not set by default)
16 #<FilesMatch "^\.ht">
17 #       Order allow,deny
18 #       Deny from all
19 #</FilesMatch>
20
21 # Prohibit direct access
22 <FilesMatch "\.(ini\.php|lng\.php|txt|gz|tgz|zip)$">
23         Order allow,deny
24         Deny from all
25 </FilesMatch>
26
27 ## Authentication to this directory with basic-auth
28 ## needs 'AllowOverride AuthConfig' at httpd.conf
29 #AuthType Basic
30 #AuthName      "Authentication required"
31 #AuthUserFile  /path/to/.htpasswd
32 #AuthGroupFile /dev/null
33 #Require       valid-user
34
35 ## Using zlib.output_compression per directory (via .htaccess)
36 ## needs 'AllowOverride Options' at httpd.conf
37 ##
38 ## NOTE:
39 ##   Define PKWK_ZLIB_LOADABLE_MODULE somewhere if you are using
40 ##   PHP extension as loadable module (especially FreeBSD ports)
41 ##   (See BugTrack/738 for detail)
42 #php_flag zlib.output_compression On