#
# $Id$
#
# Handle request routing.
#
# PHP settings
#
php_value short_open_tag 0
php_flag magic_quotes_gpc Off
# Redirection (requires the "mod_rewrite" Apache module)
#
# Required Buan configuration:
# [app.command.parameter] = 'do' (see below)
# [app.command.urlPrefix] = '' (ie. empty string)
#
# You can actually use any custom value for [app.command.parameter], as long as
# you replace "do" in the directives below with your custom parameter.
#
<IfModule mod_rewrite.c>
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
RewriteBase /
# Uncomment and adjust these lines if you have installed the application
# in a subfolder of your document root
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} buan/buan-pub
#RewriteRule ^buan/buan-pub(.*)$ path/to/subfolder/containing/buan/buan-pub$1 [L]
# Handle all other requests
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteCond %{REQUEST_FILENAME} !favicon.ico
RewriteCond %{REQUEST_FILENAME} !robots.txt
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?do=$1 [QSA,L]
</IfModule>
# Fallback
# This method will be used if you do not have the "mod_rewrite" Apache module
# available on the server.
#
# Required Buan configuration:
# [app.command.parameter] = 'do' (see below)
# [app.command.urlPrefix] = 'do' (see below)
#
# You can actually use any custom values for above configuration variables, as
# long as you replace "do" in the directives below with your custom parameter
# and change the name of the "do" file in this folder accordingly.
#
<IfModule !mod_rewrite.c>
<Files "do">
ForceType application/x-httpd-php
</Files>
</IfModule>