Browse files

updating to stacy 2.2.1 and laying in start of new design

  • Loading branch information...
blackant committed Nov 23, 2010
1 parent b8d442a commit e0c36cdf625d23c77426511fc2a94c5ba9c8568a
@@ -1,2 +1,3 @@
@@ -6,21 +6,28 @@ RewriteEngine on
ErrorDocument 404 /404.html
+# Rewrite any calls to *.html, *.json, *.xml, *.atom, *.rss, *.rdf or *.txt if a folder matching * exists
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_URI} !public/
+RewriteCond %{DOCUMENT_ROOT}/public/$1.$2 !-f
+RewriteRule (.+)\.(html|json|xml|atom|rss|rdf|txt)$ $1/ [L]
# Add a trailing slash to directories
-RewriteCond %{REQUEST_URI} !app/(.*)$
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ([^/]+)$ $1/ [L]
-# Rewrite any calls to /* to the app
-RewriteCond %{REQUEST_URI} app/$
-RewriteRule ^app - [L]
+# Rewrite any calls to /* or /app to the index.php file
+RewriteCond %{REQUEST_URI} /app/$
+RewriteRule ^app/ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^(.*)/$ app/?$1 [L]
-RewriteRule ^$ app/ [L]
+RewriteRule ^(.*)/$ index.php?$1 [L]
# Rewrite any file calls to the public directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^(.+) public/$1 [L]
+RewriteCond %{REQUEST_URI} !public/
+RewriteRule ^(.+)$ public/$1 [L]
@@ -1,11 +0,0 @@
-Version 1.2
-Stacey takes static content from .txt files, image files and directory structure and generates a static portfolio website. So, a no-cms, no-database, semi-dynamic website generator.
-If you look in the /content and /templates folders, you should get the general idea of how it all works.
-Or check out for more detailed usage information.
-Copy to server, chmod 777 app/cache, rename htacess file to .htaccess.
-Copyright (c) 2009 Anthony Kolber. See LICENSE for details.
Binary file not shown.
No changes.
@@ -1,13 +0,0 @@
-if(phpversion() < 5) {
- echo "<h3>Stacey requires PHP/5.0 or higher.<br>You are currently running PHP/".phpversion().".</h3><p>You should contact your host to see if they can upgrade your version of PHP.</p>";
- return;
-include '';
-// instantiate the app
-$s = new Stacey($_GET);
Oops, something went wrong.

0 comments on commit e0c36cd

Please sign in to comment.