Permalink
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
View
@@ -1,2 +1,3 @@
app/cache/*
+.DS_Store
View
@@ -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]
View
11 README
@@ -1,11 +0,0 @@
-Overview—
-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 http://staceyapp.com for more detailed usage information.
-
-Installation–
-Copy to server, chmod 777 app/cache, rename htacess file to .htaccess.
-
-Copyright—
-Copyright (c) 2009 Anthony Kolber. See LICENSE for details.
View
Binary file not shown.
View
No changes.
View
@@ -1,13 +0,0 @@
-<?php
-
-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 'stacey.inc.php';
-
-// instantiate the app
-$s = new Stacey($_GET);
-
-?>
Oops, something went wrong.

0 comments on commit e0c36cd

Please sign in to comment.