banks/banksco.de/master/content/.htaccess
RewriteEngine on
# Redirect old domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([a-z]+.)?banksdesigns.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.banksco.de$
RewriteRule (.*)$ https://banksco.de/$1 [R=301,L]
# Redirect non-ssl
RewriteEngine On
RewriteCond %{HTTP_HOST} !^bankscode.banksservers.co.uk$
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^post/(.*) /p/$1.html [L,R=301]
RewriteRule ^rss$ /blog.rss.xml [L,R=301]
RewriteRule ^archive$ /archive.html [L,R=301]
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
On Github License
Files