root/trunk/.htaccess

Revision 322, 1.5 kB (checked in by bermiferrer, 4 years ago)

Updating many small issues related to no mod_rewrite availability and sqlite setup.
- Fixed bug on double slashes when not using URL_
- AK_URL_REWRITE_ENABLED is not set by default.
- Setup script creates a clean testing environment.
- Sqlite DB connection failure throws a PHP version warning.
- Errors in docs
- Removed public/500.html and public/400.html, 404 errors never arrived and 500 errors gave a not found error.
- Mac OSX sqlite3 does not like hidden files as databases, so now it uses a hashed db name by default.

Line 
1 DirectoryIndex index.php
2
3 <IfModule sapi_apache2.c>
4    php_value register_globals        0
5    php_value magic_quotes_gpc        0
6    php_value magic_quotes_runtime    0
7    php_value magic_quotes_sybase     0
8    php_value arg_separator.output    "&"
9    php_value default_charset            "utf-8"
10    php_value session.name           "AK_SESSID"
11 </IfModule>
12
13 <IfModule mod_php4.c>
14    php_value register_globals        0
15    php_value magic_quotes_gpc        0
16    php_value magic_quotes_runtime    0
17    php_value magic_quotes_sybase     0
18    php_value arg_separator.output    "&"
19    php_value default_charset            "utf-8"
20    php_value session.name           "AK_SESSID"
21 </IfModule>
22
23 # On some servers this directive might be needed
24 # Options +FollowSymLinks
25  
26 # Various rewrite rules
27 <IfModule mod_rewrite.c>
28   RewriteEngine on
29
30   # If your Akelos Framework application is accessed via an Alias directive,
31   # then you MUST also set the RewriteBase in this htaccess file.
32   #
33   # Example:
34   #   Alias /myakelosapp /path/to/myakelosapp/public
35   # RewriteBase /framework
36
37   # If you don't want The Akelos Framework to look in certain directories,
38   # use the following rewrite rules so that Apache won't rewrite certain requests
39   #
40   # Example:
41   #   RewriteCond %{REQUEST_URI} ^/notakelos.*
42   #   RewriteRule .* - [L]
43
44
45   # Rewrite URLs of the form 'index.php?ak=x':
46   RewriteCond %{REQUEST_FILENAME} !-f
47   RewriteCond %{REQUEST_FILENAME} !-d
48   RewriteRule ^(.*)$ index.php?ak=$1 [L,QSA]
49 </IfModule>
50
51 ErrorDocument 500 "<h2>Apache server error</h2>Akelos application failed to start properly"
Note: See TracBrowser for help on using the browser.