[PATCH v2 3/3] docs: gitlab redirects: Drop '/libvirt' prefix for hosting the web through gitlab pages

Peter Krempa posted 3 patches 7 months, 3 weeks ago
[PATCH v2 3/3] docs: gitlab redirects: Drop '/libvirt' prefix for hosting the web through gitlab pages
Posted by Peter Krempa 7 months, 3 weeks ago
The prefix needs to be dropped for the redirects to work properly once
hosting 'libvirt.org' via gitlab pages.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 .gitlab_pages_redirects | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/.gitlab_pages_redirects b/.gitlab_pages_redirects
index baa94384ba..97ebcede77 100644
--- a/.gitlab_pages_redirects
+++ b/.gitlab_pages_redirects
@@ -1,25 +1,25 @@
 # Redirects to golang module pages
-/libvirt/libvirt-go /libvirt-go.html 200
-/libvirt/libvirt-go-xml /libvirt-go-xml.html 200
-/libvirt/go/libvirt /go/libvirt.html 200
-/libvirt/go/libvirtxml /go/libvirtxml.html 200
+/libvirt-go /libvirt-go.html 200
+/libvirt-go-xml /libvirt-go-xml.html 200
+/go/libvirt /go/libvirt.html 200
+/go/libvirtxml /go/libvirtxml.html 200

 # Redirects to the download server
-/libvirt/sources/* https://download.libvirt.org/:splat 301
-/libvirt/ruby/download/* https://download.libvirt.org/ruby/:splat 301
-/libvirt/maven2/org/libvirt* https://download.libvirt.org/maven2/org/libvirt/:splat 301
+/sources/* https://download.libvirt.org/:splat 301
+/ruby/download/* https://download.libvirt.org/ruby/:splat 301
+/maven2/org/libvirt* https://download.libvirt.org/maven2/org/libvirt/:splat 301

 # Redirects to subproject pages
-/libvirt/ruby/* https://ruby.libvirt.org/:splat 301
-/libvirt/ocaml/* https://ocaml.libvirt.org/:splat 301
-/libvirt/php/* https://php.libvirt.org/:splat 301
-/libvirt/libvirt-appdev-guide-python/en-US/html/* https://libvirt.gitlab.io/libvirt-appdev-guide-python/:splat: 301
-/libvirt/java.html https://java.libvirt.org 301
+/ruby/* https://ruby.libvirt.org/:splat 301
+/ocaml/* https://ocaml.libvirt.org/:splat 301
+/php/* https://php.libvirt.org/:splat 301
+/libvirt-appdev-guide-python/en-US/html/* https://libvirt.gitlab.io/libvirt-appdev-guide-python/:splat: 301
+/java.html https://java.libvirt.org 301
 # Redirect to the proper javadoc directory on the subproject page
-/libvirt/sources/java/javadoc/* https://java.libvirt.org/javadoc/:splat 301
+/sources/java/javadoc/* https://java.libvirt.org/javadoc/:splat 301

 # Redirects from old gitweb location (see below)
-/libvirt/git https://gitlab.com/libvirt/ 301
+/git https://gitlab.com/libvirt/ 301

 # The above rules are adapted from the following set of 'mod_rewrite' rules used
 # originally on libvirt.org:
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org
Re: [PATCH v2 3/3] docs: gitlab redirects: Drop '/libvirt' prefix for hosting the web through gitlab pages
Posted by Daniel P. Berrangé 7 months, 3 weeks ago
On Fri, Jan 19, 2024 at 03:33:44PM +0100, Peter Krempa wrote:
> The prefix needs to be dropped for the redirects to work properly once
> hosting 'libvirt.org' via gitlab pages.
> 
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> ---
>  .gitlab_pages_redirects | 28 ++++++++++++++--------------
>  1 file changed, 14 insertions(+), 14 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org