aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-10-30 23:38:03 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-10-30 23:38:03 +0200
commitefbacb9717eb28209c0362c84b293653915fb453 (patch)
tree0e3eb884dba9546c1845b3ce4ad9481fb4141d9d /README
parentbeadd930059012ddc6d055c09932227993305604 (diff)
downloadmain-efbacb9717eb28209c0362c84b293653915fb453.tar.gz
main-efbacb9717eb28209c0362c84b293653915fb453.tar.bz2
main-efbacb9717eb28209c0362c84b293653915fb453.zip
Fixes, updated readme
Diffstat (limited to 'README')
-rw-r--r--README17
1 files changed, 16 insertions, 1 deletions
diff --git a/README b/README
index 4054ef7..e511e1a 100644
--- a/README
+++ b/README
@@ -4,6 +4,7 @@ MAIN - the simple PHP framework
site:
public (this is the DocRoot for your site)
+ .htaccess (see .htaccess)
index.php
system (put all system support files in here)
lib
@@ -25,7 +26,7 @@ A typical index.php using MAIN would look like this:
. "{$sysdir}/lib" . PATH_SEPARATOR
. "{$sysdir}/conf" . PATH_SEPARATOR
. "{$sysdir}/classes" . PATH_SEPARATOR
- );
+ );
require_once "main/app.php";
require_once "main/controller.php";
@@ -35,3 +36,17 @@ A typical index.php using MAIN would look like this:
App::init();
?>
+
+## .htaccess ##
+
+Main uses and is developed on using Apache httpd's mod_rewrite module. The .htaccess file in your web app's
+public root folder should look something like this:
+
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule ^.*$ - [NC,L]
+ RewriteRule ^.*$ index.php [NC,L]
+</IfModule>