Options +SymLinksIfOwnerMatch -Indexes

RewriteEngine on
RewriteBase /

RewriteRule ^static/ - [L]

# Pass-through accesses to WS

# Hide php extension
RewriteRule ^(.*)\.html$ $1.php [NC]

RewriteRule ^$ /cmp/action.php?action=index&%{QUERY_STRING} [L]

# rewrite all pages addressed as "support.html" to be redirected to "index.php?action=support"
RewriteCond %{REQUEST_URI} !action.(php|html)$
RewriteRule ^([a-zA-Z0-9_-]+)\.(php|html) /cmp/action.php?action=$1&%{QUERY_STRING} [L]
