File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/oudlondon.nl/.htaccess
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
</IfModule>
ErrorDocument 404 /404.php
RewriteEngine on
#RewriteCond %{HTTP_HOST} ^oudlondon.nl [NC]
#RewriteRule ^(.*)$ https://www.oudlondon.nl/$1 [L,R=301]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://www.oudlondon.nl/$1 [R,L]
RewriteCond %{REQUEST_URI} !(en)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)$
RewriteRule ^(.+)/$ https://www.oudlondon.nl/$1 [R=301,L]
RewriteRule ^Reviews$ /actueel/Reviews [R=301,NC,L]
RewriteRule ^Hotel-Zeist/Hotel-Zeist-273$ /hotel-zeist [R=301,NC,L]
RewriteRule ^hotel-zeist$ /276-Hotel-Zeist [NC,L]
RewriteRule ^restaurant-zeist$ /275-Restaurant-Zeist [NC,L]
RewriteRule ^vergaderlocatie-utrecht$ /277-Vergaderlocatie-Utrecht [NC,L]
RewriteRule ^congreslocatie-utrecht$ /278-Congreslocatie-Utrecht [NC,L]
RewriteRule ^oudlondon.nl/restaurant-zeist$ /restaurant-zeist [R=301,NC,L]
#RewriteRule ^(en)$ http://localhost:8888/oudlondon.nl/en/ [NC,L]
RewriteRule ^handle-form$ pages/handlers/handle.form_default.php?%{QUERY_STRING} [L]
#RewriteRule ^offerte-aanvraag$ pages/handlers/handle.offerteaanvraag.php?%{QUERY_STRING} [L]
RewriteRule ^accept-cookies$ pages/handlers/cookies_accept.php [L]
RewriteRule ^reveal-status$ pages/handlers/reveal_status.php [L]
RewriteRule ^(en)$ https://www.oudlondon.nl/$1/ [NC,L]
RewriteRule uw-verblijf$ https://www.oudlondon.nl/Contact/Uw-verblijf-nog-aangenamer-234 [R=301,NC,L]
#permalink
RewriteRule ^nl/([0-9]+)-([^\.]+)$ index.php?section=&cms_link=1&permalink=1&name=$2&uid=$1&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^([0-9]+)-([^\.]+)$ index.php?section=&permalink=1&name=$2&uid=$1&meta_title=$2&%{QUERY_STRING} [NC,L]
#NL
RewriteRule ^(en)/([^\.]+)/([^\.]+)/([^\.]+)-([0-9]+)$ index.php?lang=$1§ion=$2&category=$3&name=$4&uid=$5&meta_title=$4&%{QUERY_STRING} [NC,L]
RewriteRule ^(en)/([^\.]+)/([^\.]+)-([0-9]+)$ index.php?lang=$1§ion=$2&name=$3&uid=$4&meta_title=$3&%{QUERY_STRING} [NC,L]
RewriteRule ^(en)/([^\.]+)-([0-9]+)$ index.php?lang=$1&category_name=$2&category=$2&type=page§ion=pages&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^(en)/([^\.]+)/([^\.]+)$ index.php?lang=$1§ion=$2&category=$3&meta_title=$3&%{QUERY_STRING} [NC,L]
RewriteRule ^(en)/([^\.]+)$ index.php?lang=$1§ion=$2&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^(en)/$ index.php?lang=$1 [NC,L]
#NL
RewriteRule ^([^\.]+)/([^\.]+)/([^\.]+)-([0-9]+)$ index.php?section=$1&category=$2&name=$3&uid=$4&meta_title=$3&%{QUERY_STRING} [NC,L]
RewriteRule ^([^\.]+)/([^\.]+)-([0-9]+)$ index.php?section=$1&name=$2&uid=$3&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^([^\.]+)-([0-9]+)$ index.php?category_name=$1&category=$1&type=page§ion=pages&meta_title=$1&%{QUERY_STRING} [NC,L]
RewriteRule ^([^\.]+)/([^\.]+)$ index.php?section=$1&category=$2&meta_title=$2&%{QUERY_STRING} [NC,L]
RewriteRule ^([^\.]+)$ index.php?section=$1&meta_title=$1&%{QUERY_STRING} [NC,L]
# rewrite to cassette formgen
RewriteRule ^verstuurform.html$ cassette/pages/formgen/handle_form.php?%{QUERY_STRING} [L]
RewriteRule ^css/images/(.*)$ images/$1 [L]
############################
## LOCALHOST image config ##
############################
#RewriteCond %{HTTP_HOST} ^localhost:8888$ [NC]
RewriteRule ^image.php?(.*)$ pages/handlers/handle.create_thumb.php?%{QUERY_STRING} [L]
#RewriteCond %{HTTP_HOST} ^localhost:8888$ [NC]
#RewriteRule ^content/(.*)$ http://localhost:8888/cassette3_db_select/content/$1 [L]
#########################
## ONLINE image config ##
#########################
#RewriteCond %{HTTP_HOST} !^localhost:8888$ [NC]
#RewriteRule ^image.php?(.*)$ http://login.creativefellows.nl/admin/pages/misc/create_thumb.php?%{QUERY_STRING} [L]
#RewriteCond %{HTTP_HOST} !^localhost:8888$ [NC]
#RewriteRule ^content/(.*)$ http://login.creativefellows.nl/content/$1 [L]