Skip to content

Redirects

David Mann edited this page Nov 6, 2023 · 1 revision

Overview

We're using jekyll-redirect-from to handle redirects as Github Pages does not offer access to make changes to .htaccess or any other means of creating redirects.

Usage

In the front matter of any page you can include either a redirect_from or redirect_to.

---
title: example
permalink: /example/
layout: page
redirect_to: /another-page
---

This example will create a redirect from /example to /another-page.

Drawbacks

These aren't "proper" redirects. The browser doesn't get a 301 (permanent redirect) response. Search engines don't like this. The only way to avoid this would be to migrate to a our own host so we can create proper redirects.

Clone this wiki locally