File: /var/www/vhosts/creativefellows.nl/dhwd.creativefellows.nl/.htaccess
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
RewriteEngine on
Header unset Pragma
FileETag None
Header unset ETag
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 14 days"
Header set Cache-Control "public"
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
RewriteBase /
# non www to www
#RewriteCond %{HTTP_HOST} ^necsl2100.com [NC]
#RewriteRule ^(.*)$ https://www.necsl2100.com/$1 [L,R=301]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://www.necsl2100.com/$1 [R,L]
#RewriteCond %{REQUEST_URI} !^/us(.*)$
#RewriteRule ^$ us/ [L,R=301]
#RewriteCond %{REQUEST_URI} !(en|emea)
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.+)/$ https://www.necsl2100.com/$1 [R=301,L]
##RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^(us|emea)$ http://www.necsl2100.com/$1/ [NC,L]
#https://www.edwindenhertog.nl/nl/Blog/blogs/
RewriteRule ^nl/Blog$ /nl/blog/blogs [L,NC]
RewriteRule ^nl/projecten$ /nl/projecten/alles [L,NC]
RewriteRule ^handle-form$ pages/handlers/handle.form_default.php?%{QUERY_STRING} [L]
RewriteRule ^(nl)$ $1/ [NC,L]
#permalink
RewriteRule ^(nl)/([0-9]+)-([^\.]+)$ index.php?lang=$1§ion=&permalink=2&name=$3&uid=$2&meta_title=$3&%{QUERY_STRING} [NC,L]
RewriteRule ^(nl)/([^\.]+)/([^\.]+)/([^\.]+)$ index.php?lang=$1§ion=$2&category=$3&name=$4&meta_title=$4&%{QUERY_STRING} [NC,L]
RewriteRule ^(nl)/([^\.]+)/([^\.]+)$ index.php?lang=$1§ion=$2&name=$3&meta_title=$3&%{QUERY_STRING} [NC,L]
RewriteRule ^(nl)/([^\.]+)$ index.php?lang=$1§ion=$2&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^(nl)/$ index.php?lang=$1 [NC,L]
#image creation
RewriteRule ^image.php?(.*)$ pages/handlers/handle.create_thumb.php?%{QUERY_STRING} [L]