X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=metaform%2Fhtaccess;h=de9356abff3f36dac341221f204486993fae1978;hp=517f638e32947b0968d98fbb3e32625025154ed0;hb=23dfbcc20fc6d20fb5be211e5af50cdcb8565c8e;hpb=d674720715c4dd8f210d9064db032f1c862dd3fa diff --git a/metaform/htaccess b/metaform/htaccess index 517f638..de9356a 100644 --- a/metaform/htaccess +++ b/metaform/htaccess @@ -12,23 +12,15 @@ AddDefaultCharset UTF-8 ExpiresDefault A31536000 -# the following line makes it so you can just update the link to your -# stylesheet without actually renaming it all the time. This is needed even if -# you don't set a long cache period on stylesheets, because Safari will check -# for a new html, but not check for a new css. -RewriteRule ^style_[0-9]*.less$ /style.less [L] - - # To enable larger uploads, you'll need both of these: # php_value post_max_size 205M # php_value upload_max_filesize 200M ############ START OF PRETTY URLS SETTINGS ############ -# This section contains directives to enable pretty URLs, and instruct apache -# to run wfpl on them. This runs code/config.php if it exists, then loads -# templates, then loads the php file, and call's it's main function. See -# code/wfpl/run.php and code/wfpl/README for more details. +# This section contains directives to enable pretty URLs, including setting +# page urls to run your site-wide config file, which in turn can run +# wfpl_main() # To have "pretty" urls (no file extension at the end) we use mod_rewrite. But # first we've got to disable a couple url-mangling features of apache that take @@ -42,7 +34,7 @@ RewriteEngine on # Unfortunately, the rewrite rules only work with absolute paths, so if your # files are not at the top level of the domain, you'll have to customize this # part. Here's the config for running at the top level: -RewriteRule ^[^/.]*$ /run.php +RewriteRule ^[^/.]*$ /config.php # use this line instead if you have this (.htaccess) file and your php and html # files in the ~form~ directory: