Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2b18f020
Commit
2b18f020
authored
Mar 09, 2016
by
Achilleas Pipinellis
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add section on redirects
[ci skip]
parent
873eacaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
doc/pages/README.md
doc/pages/README.md
+12
-0
No files found.
doc/pages/README.md
View file @
2b18f020
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment