From a1f43f6abb08761cbe28a1ba09cc4d45ca806f39 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 14 Dec 2009 15:28:39 +0000 Subject: [PATCH] Moved the config and htaccess files to dist, and set ignores on the proper filenames --- .htaccess.dist | 19 +++++++++++++++++++ code/{config.php => config.php.dist} | 0 2 files changed, 19 insertions(+) create mode 100644 .htaccess.dist rename code/{config.php => config.php.dist} (100%) diff --git a/.htaccess.dist b/.htaccess.dist new file mode 100644 index 0000000..7c64ecc --- /dev/null +++ b/.htaccess.dist @@ -0,0 +1,19 @@ +# Magic Quotes are the Root-of-all-Evil and must be burned at the stake. +php_flag magic_quotes_gpc off + + + + # Enable mod_rewrite for pretty urls + RewriteEngine on + # Treat all rules as starting from this directory + RewriteBase / + + # Redirect rating requests specifically to the image generator + RewriteRule ratings/([0-9\.]*) resources/rating.php?r=$1 [L,NC,NS] + + # If the requeted item doesnt already exist, redirect it to our dispatch page + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule (.*) index.php [L,NC,NS] + + diff --git a/code/config.php b/code/config.php.dist similarity index 100% rename from code/config.php rename to code/config.php.dist