JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make metaform tarballs come with install doc
[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 ############ START OF PRETTY URLS SETTINGS
9 # This section contains directives to enable pretty URLs, and instruct apache
10 # to run wfpl on them. This runs code/config.php if it exists, then loads
11 # templates, then loads the php file, and call's it's main function. See
12 # code/wfpl/run.php and code/wfpl/README for more details.
13
14 # To have "pretty" urls (no file extension at the end) we use mod_rewrite. But
15 # first we've got to disable a couple url-mangling features of apache that take
16 # precedence over mod_rewrite:
17 Options -MultiViews
18 DirectorySlash Off
19
20 # Activate mod_rewrite:
21 RewriteEngine  on
22
23 # Unfortunately, the rewrite rules only work with absolute paths, so if your
24 # files are not at the top level of the domain, you'll have to customize this
25 # part. Here's the config for running at the top level:
26 RewriteRule    ^[^/.]*$  /run.php
27
28 # use this line instead if you have this (.htaccess) file and your php and html
29 # files in the ~form~ directory:
30 #RewriteRule    ^[^/.]*$  /~form~/run.php
31 ############ END OF PRETTY URLS SETTINGS