# Options:
# -MultiViews: Turns off multiviews so it doesn't interfer with our rewrite rules
# -Indexes: Stop directory listings
# +FollowSymlinks: Let out rewrite rules work
Options -MultiViews -Indexes +FollowSymlinks
<IfModule mod_security.c>
# Turn off mod_security filtering.
# SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
ErrorDocument 404 /404.php
<IfModule mod_php5.c>
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value session.auto_start 0
php_value safe_mode 0
</IfModule>
<IfModule sapi_apache2.c>
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value session.auto_start 0
php_value safe_mode 0
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule uploads/(.*)$ uploads/$1
RewriteRule ^([^/]*)\.html$ content.php?pagename=$1 [L]
RewriteRule content/([^/]*)/$ modules.php?module=$1 [L]
#Article Manager
RewriteRule article-archive/([0-9]{4})/([0-9]{1,2})$ modules.php?module=articles&do=article-archive&y=$1&m=$2 [L]
RewriteRule article-tags/([^/]*)$ modules.php?module=articles&do=article-tags&tagname=$1 [L]
RewriteRule article/([^/]*)\.html$ modules.php?module=articles&do=article&artname=$1 [L]
RewriteRule article-category/([^/]*)/([^/]*)-([^/]*)\.html$ modules.php?module=articles&do=article-category&catname=$1&pg=$2&ipp=$3
RewriteRule article-category/([^/]*)\.html$ modules.php?module=articles&do=article-category&catname=$1 [L]
RewriteRule article-search/$ modules.php?module=articles&do=article-search [L]
#Portfolio
RewriteRule portfolio/([^/]*)\.html$ modules.php?module=portfolio&do=portfolio&productname=$1 [L]
#Digishop
RewriteRule digishop/([^/]*)\.html$ modules.php?module=digishop&do=digishop&productname=$1 [L]
RewriteRule digishop-checkout/$ modules.php?module=digishop&do=digishop-checkout [L]
#Booking Manager
RewriteRule event/([^/]*)/([^/]*)\.html$ modules.php?module=booking&do=event&eventdate=$1&eventname=$2[LRewriteRuleevent-user/$modules.php?module=booking&do=event-user [L]
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>