aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lasseter <nathan@4574.co.uk>2012-10-10 20:16:44 +0100
committerNathan Lasseter <nathan@4574.co.uk>2012-10-10 20:16:44 +0100
commit6d3ce1d38378d64858b5aceee4f2058064918762 (patch)
treea4090e0753dffde4046a67be44907e2d95877867
parent94c589ed55b20a581810e126b20fdc2d67c68221 (diff)
Examples
-rw-r--r--.htaccess1
-rw-r--r--README5
2 files changed, 5 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 5c502fc..043a3e5 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,6 +1,7 @@
RewriteEngine on
RewriteRule ^post/(.*)$ /viewpost.php?post=$1
+#RewriteRule ^post/(.*)$ /blog/viewpost.php?post=$1
<Files "dopost.php">
AuthType Basic
diff --git a/README b/README
index feffaa4..ada44fc 100644
--- a/README
+++ b/README
@@ -4,9 +4,12 @@ PHP blogging software
Released unlicensed
+The software is set up for FS root /var/www/ and Server Root /
+There are examples for /var/www/blog/ and /blog/
+
Installation:
* Clone the repo
* Create a posts directory
* Edit settings.php to your liking
* Create a .htpasswd file for posting users
-* Edit .htaccess to point to .htpasswd
+* Edit .htaccess to point to .htpasswd and to perform the redirect correctly