DirectoryIndex index.php
<IfModule sapi_apache2.c>
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value arg_separator.output "&"
php_value default_charset "utf-8"
php_value session.name "AK_SESSID"
</IfModule>
# On some servers this directive might be needed
# Options +FollowSymLinks
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*/)?.(svn|git|hg|bzr)/ - [F,L]
ErrorDocument 403 "Access Forbidden"
# If your Akelos Framework application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
# Alias /myakelosapp /path/to/myakelosapp/public
# RewriteBase /
# If you don't want The Akelos Framework to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain requests
#
# Example:
# RewriteCond %{REQUEST_URI} ^/notakelos.*
# RewriteRule .* - [L]
RewriteRule ^mod_rewrite_test$ mod_rewrite_test_file.txt [L]
# Rewrite URLs of the form 'index.php?ak=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !favicon.ico$
RewriteRule ^(.*)$ index.php?ak=$1 [L,QSA]
</IfModule>
ErrorDocument 500 "<h2>Apache server error</h2>Akelos application failed to start properly"