fuzzyworld-tools / commit
Add redirects for /why/ and /principles/ to /why-i-left-gitlab/
server/site/htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/site/htaccess b/server/site/htaccess index 19d3669..2bfef89 100644 --- a/server/site/htaccess +++ b/server/site/htaccess @@ -8,6 +8,12 @@ RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L] +# Redirect /why/ to /why-i-left-gitlab/ (old URL from GitLab repo READMEs) +RewriteRule ^/why/?$ /why-i-left-gitlab/ [R=301,L] + +# Redirect /principles/ to /why-i-left-gitlab/#principles (content was consolidated) +RewriteRule ^/principles/?$ /why-i-left-gitlab/#principles [R=301,L] + # Nothing in this tree is ever executed: pages are pre-generated HTML, raw copies # are images only, and public clone copies are plain git data. RemoveHandler .php .php3 .php4 .php5 .php7 .php8 .phtml .phar .shtml .cgi .pl .py