From 2b18f02023496bec4c661a5134f6c6aa5753cae6 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Wed, 9 Mar 2016 10:51:41 +0200 Subject: Add section on redirects [ci skip] --- doc/pages/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/pages') diff --git a/doc/pages/README.md b/doc/pages/README.md index 9377135be7d..7e9184b54d3 100644 --- a/doc/pages/README.md +++ b/doc/pages/README.md @@ -37,6 +37,7 @@ information, if you are using GitLab.com to host your website. - [Remove the contents of your pages](#remove-the-contents-of-your-pages) - [GitLab Pages on GitLab.com](#gitlab-pages-on-gitlabcom) - [Limitations](#limitations) +- [Redirects in GitLab Pages](#redirects-in-gitlab-pages) - [Frequently Asked Questions](#frequently-asked-questions) - [Can I download my generated pages?](#can-i-download-my-generated-pages) - [Can I use GitLab Pages if my project is private?](#can-i-use-gitlab-pages-if-my-project-is-private) @@ -408,6 +409,16 @@ don't redirect HTTP to HTTPS. [rfc]: https://tools.ietf.org/html/rfc2818#section-3.1 "HTTP Over TLS RFC" +## Redirects in GitLab Pages + +Since you cannot use any custom server configuration files, like `.htaccess` or +any `.conf` file for that matter, if you want to redirect a web page to another +location, you can use the [HTTP meta refresh tag][metarefresh]. + +Some static site generators provide plugins for that functionality so that you +don't have to create and edit HTML files manually. For example, Jekyll has the +[redirect-from plugin](https://github.com/jekyll/jekyll-redirect-from). + ## Frequently Asked Questions ### Can I download my generated pages? @@ -435,3 +446,4 @@ No, you don't. You can create your project first and it will be accessed under [pages]: ../ci/yaml/README.md#pages [staticgen]: https://www.staticgen.com/ [pages-jekyll]: https://gitlab.com/gitlab-examples/pages-jekyll +[metarefresh]: https://en.wikipedia.org/wiki/Meta_refresh -- cgit v1.2.1