Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
blogs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grp-bio-it
blogs
Commits
33b95315
Verified
Commit
33b95315
authored
Jul 24, 2020
by
Renato Alves
🌱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blog URL and README info
parent
4efec5f0
Pipeline
#16681
passed with stages
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
27 deletions
+4
-27
README.md
README.md
+2
-25
index.html
index.html
+2
-2
No files found.
README.md
View file @
33b95315
#
Template GitLab Pages redirect
#
Bio-IT community blogs renamed
A template repository used to redirect GitLab pages after a project rename.
## How to use
After renaming a project that uses GitLab pages, the old URL will return a 404.
Any links to the old URL will consequently break.
The solution is to create a
*dummy*
repository that creates a GitLab page with a redirect to the new address.
The steps:
1.
Clone this repository
2.
Edit
`index.html`
and replace all occurrences of
`REDIRECT_URL`
with the GitLab pages URL of the new repository
3.
Edit this README to provide additional information (see Caveats below)
4.
Create a new project with the old name
5.
Push this repository to the old project location
If the CI succeeds you should be done.
Visiting the old URL should now redirect to the new automatically.
## Caveats
Pushing this template repository under the old name will make GitLab to no longer redirect the project URL.
This can be addressed somehow by editing this README and the description of the project to point to the new project location.
The project is now at https://git.embl.de/grp-bio-it/blog
index.html
View file @
33b95315
...
...
@@ -2,11 +2,11 @@
<html>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"refresh"
content=
"0; url=
REDIRECT_URL
"
>
<meta
http-equiv=
"refresh"
content=
"0; url=
https://grp-bio-it.embl-community.io/blog/
"
>
</head>
<body>
<script
type=
"text/javascript"
>
window
.
location
.
href
=
"
REDIRECT_URL
"
;
window
.
location
.
href
=
"
https://grp-bio-it.embl-community.io/blog/
"
;
</script>
</body>
</html>
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