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
5 # All your files are UTF-8... RIGHT?
6 AddDefaultCharset UTF-8
8 # You should rename your images and css files when you change them so they can
10 <FilesMatch "\.(css|less|jpg|png)$">
12 ExpiresDefault A31536000
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
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
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:
31 # Activate mod_rewrite:
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 ^[^/.]*$ /wfpl_main.php [L]
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 ############