From efbacb9717eb28209c0362c84b293653915fb453 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 30 Oct 2009 23:38:03 +0200 Subject: Fixes, updated readme --- README | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'README') 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: + + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ index.php [NC,L] + -- cgit v1.2.3