Options FollowSymlinks

DirectoryIndex index.php index.html

RewriteEngine On

# modify urls like:  /about  ->  /index.php?page=/about
# as long as it's not an image or css or js or video etc.
RewriteCond %{REQUEST_URI} !\.(css|js|png|jpg|php|svg|gif|webm|webp|eot|ttf|woff|woff2|mp4|av1|avi|mkv)$
RewriteRule (.+) index.php?page=$1 [L,QSA]

# modify all request for:  /something  ->  /something.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.*) $1.php [L]

# some mroe mimes
AddType application/webm  webm
AddType video/webm        webm
AddType application/ogg   ogv
AddType video/ogg         ogv
AddType application/mp4   mp4
AddType video/mp4         mp4

# php stuff - especially for shot.php - limit uploads
php_flag  session.use_cookies on
php_value post_max_size       32M
php_value upload_max_filesize 32M
