JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix typo in comment
[wfpl-cms.git] / .htaccess
1 php_value post_max_size 25M
2 php_value upload_max_filesize 20M
3 php_flag register_globals off
4 php_flag magic_quotes_gpc off
5 DirectorySlash Off
6 DirectoryIndex disabled
7 AddDefaultCharset UTF-8
8 AddCharset UTF-8 .css
9 RewriteEngine  on
10 RewriteRule    ^[^/.]*$  /wfpl_main.php [L]
11 # Close loophole in security restriction/exception below
12 RewriteRule    ^.*/.*wfpl_main.php$  /wfpl_main.php [L]
13
14 <FilesMatch "\.(css|jpg|png)$">
15         ExpiresActive On
16         ExpiresDefault A31536000
17 </FilesMatch>
18
19 # SECURITY: don't execute code on the server (exception below)
20 SetHandler none
21 SetHandler default-handler
22 # this option is needed for RewriteRule to work:
23 Options SymlinksIfOwnerMatch
24 php_flag engine off
25 RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
26 # Exception: allow access to wfpl_main.php
27 #
28 # this allows access to any files named "wfpl_main.php" anywhere, so there's a
29 # rewrite rule above to use the top-level one, no matter which was requested.
30 <Files "wfpl_main.php">
31         php_flag engine on
32         SetHandler application/x-httpd-php
33 </Files>