JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
API CHANGE s/run_php/wfpl_main/
[wfpl.git] / metaform / htaccess
1 # Tell php not to mangle form data or let the user set globals.
2 php_flag register_globals off
3 php_flag magic_quotes_gpc off
4
5 # All your files are UTF-8... RIGHT?
6 AddDefaultCharset UTF-8
7
8 # You should rename your images and css files when you change them so they can
9 # be cached forever
10 <FilesMatch "\.(css|less|jpg|png)$">
11         ExpiresActive On
12         ExpiresDefault A31536000
13 </FilesMatch>
14
15 # To enable larger uploads, you'll need both of these:
16 # php_value post_max_size 205M
17 # php_value upload_max_filesize 200M
18
19
20 ############ START OF PRETTY URLS SETTINGS ############
21 # This section contains directives to enable pretty URLs, including setting
22 # page urls to run your site-wide config file, which in turn can run
23 # wfpl_main()
24
25 # To have "pretty" urls (no file extension at the end) we use mod_rewrite. But
26 # first we've got to disable a couple url-mangling features of apache that take
27 # precedence over mod_rewrite:
28 Options -MultiViews
29 DirectorySlash Off
30
31 # Activate mod_rewrite:
32 RewriteEngine  on
33
34 # Unfortunately, the rewrite rules only work with absolute paths, so if your
35 # files are not at the top level of the domain, you'll have to customize this
36 # part. Here's the config for running at the top level:
37 RewriteRule    ^[^/.]*$  /config.php
38
39 # use this line instead if you have this (.htaccess) file and your php and html
40 # files in the ~form~ directory:
41 #RewriteRule    ^[^/.]*$  /~form~/run.php
42 ############ END OF PRETTY URLS SETTINGS ############