diff piecrust/resources/webinit/htaccess @ 3:f485ba500df3

Gigantic change to basically make PieCrust 2 vaguely functional. - Serving works, with debug window. - Baking works, multi-threading, with dependency handling. - Various things not implemented yet.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 10 Aug 2014 23:43:16 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/piecrust/resources/webinit/htaccess	Sun Aug 10 23:43:16 2014 -0700
@@ -0,0 +1,18 @@
+# Uncomment this if you want to set 'pretty_urls' to 'true'.
+#RewriteEngine on
+
+# If you're running from a sub-directory, uncomment the RewriteBase statement and
+# change it to the sub-directory name you're using.
+#RewriteBase /yourbase
+
+# Don't rewrite requests to stuff that physically exists.
+RewriteCond %{REQUEST_FILENAME} -f [OR]
+RewriteCond %{REQUEST_FILENAME} -l [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^.*$ - [NC,L]
+
+# Rewrite all the rest through the gateway.
+RewriteRule ^.*$ index.php [NC,L]
+
+# Various other configuration stuff.
+AddType text/css .less