From 4297670a6158a584b9d8b3c04214ff2974fb645a Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 3 Jun 2012 08:31:41 -0700 Subject: renamed .htaccess_template to htaccess_template to make it visible --- .htaccess_template | 24 ------------------------ README | 4 ++-- htaccess_template | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 .htaccess_template create mode 100644 htaccess_template diff --git a/.htaccess_template b/.htaccess_template deleted file mode 100644 index 2e94f89..0000000 --- a/.htaccess_template +++ /dev/null @@ -1,24 +0,0 @@ - -RewriteEngine on - -RewriteBase / - - -# make the url nice and clean; the comments shows an url that should be matched - -# web_base/tag/me+berlin/pic/id -RewriteRule tag/([-_\s,a-zA-Z0-9+]*)/pic/([0-9]*) index.php?tag=$1&pic=$2 [L] - -# web_base/tag/tag1+tag2/page/4 -RewriteRule tag/([-_\s,a-zA-Z0-9+]*)/page/([0-9]*) index.php?tag=$1&page=$2 [L] - -# web_base/tag/tag1+tag2 -RewriteRule tag/([-_\s,a-zA-Z0-9+]*) index.php?tag=$1 [L] - -# web_base/pic/17 -RewriteRule pic/([0-9]*) index.php?pic=$1 [L] - -# web_base/page/4 -RewriteRule page/([0-9]*) index.php?page=$1 [L] - - diff --git a/README b/README index 146cd71..b4d4b19 100644 --- a/README +++ b/README @@ -11,7 +11,7 @@ then run for example f-spot-db-reduce.sh --include='Public' This will create a new smaller database that only contains information -about pictures with the Public tag. +about pictures with the Public tag. 2) Next run @@ -25,7 +25,7 @@ rented web-space where execcive CPU uses is an issue. 3) install .htaccess -edit the "RewriteBase" in the .htaccess_template file and rename it to .htaccess. +edit the "RewriteBase" in the htaccess_template file and rename it to .htaccess. Onces this is done you can visit index.php and everything should be working. Feel free to fork, send in patches, make suggestions. diff --git a/htaccess_template b/htaccess_template new file mode 100644 index 0000000..2e94f89 --- /dev/null +++ b/htaccess_template @@ -0,0 +1,24 @@ + +RewriteEngine on + +RewriteBase / + + +# make the url nice and clean; the comments shows an url that should be matched + +# web_base/tag/me+berlin/pic/id +RewriteRule tag/([-_\s,a-zA-Z0-9+]*)/pic/([0-9]*) index.php?tag=$1&pic=$2 [L] + +# web_base/tag/tag1+tag2/page/4 +RewriteRule tag/([-_\s,a-zA-Z0-9+]*)/page/([0-9]*) index.php?tag=$1&page=$2 [L] + +# web_base/tag/tag1+tag2 +RewriteRule tag/([-_\s,a-zA-Z0-9+]*) index.php?tag=$1 [L] + +# web_base/pic/17 +RewriteRule pic/([0-9]*) index.php?pic=$1 [L] + +# web_base/page/4 +RewriteRule page/([0-9]*) index.php?page=$1 [L] + + -- cgit v1.2.3-18-g5258