# Enable the Rewrite engine
RewriteEngine On
# Try cached page
#RewriteRule ^([^.]+)$ $1.html [QSA]
# Check if the file exists in the Application Public directory
#RewriteCond %{DOCUMENT_ROOT}Application/Public/%{REQUEST_URI} -f [OR]
#RewriteCond %{DOCUMENT_ROOT}Application/Public/%{REQUEST_URI} -d
#RewriteRule ^(.+) %{DOCUMENT_ROOT}Application/Public/$1 [L]
# BMK Module Public files
#RewriteCond %{REQUEST_URI} ^/bmk/(.+)
#RewriteCond %{DOCUMENT_ROOT}Modules/BMK/Public/$1 -f [OR]
#RewriteCond %{DOCUMENT_ROOT}Modules/BMK/Public/$1 -d
#RewriteRule ^bmk/(.+) %{DOCUMENT_ROOT}Modules/BMK/Public/$1 [L]
# File not found in any of the static directories (>> redirect to ChickenWire)
RewriteRule ^(.*)$ ChickenWire.php [QSA]
# PHP Settings
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag html_errors on
php_flag display_errors on