[gimp-web/oscp] redirects_httpd: redirects all URI to root of developer.gimp.org.



commit d8c0c6a5eab18cc94cbb1d5accb6da11ef8a39b3
Author: Jehan <jehan girinstud io>
Date:   Wed Sep 21 17:15:41 2022 +0200

    redirects_httpd: redirects all URI to root of developer.gimp.org.
    
    With RedirectPermanent, it tries the path part of the wiki URL on the
    developer website, so for instance links to:
    
    > https://wiki.gimp.org/index.php/Main_Page
    
    go to:
    
    > https://developer.gimp.org/index.php/Main_Page
    
    which gets us a 404. This RedirectMatch should perform better as a
    catchall.
    
    Note that I am also planning to add various page-specific redirections
    once we actually publish the developer website.

 redirects_httpd/app_data/httpd-cfg/wiki.gimp.org.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/redirects_httpd/app_data/httpd-cfg/wiki.gimp.org.conf 
b/redirects_httpd/app_data/httpd-cfg/wiki.gimp.org.conf
index 2d52e849..bec40fc4 100644
--- a/redirects_httpd/app_data/httpd-cfg/wiki.gimp.org.conf
+++ b/redirects_httpd/app_data/httpd-cfg/wiki.gimp.org.conf
@@ -2,5 +2,5 @@
    ServerName wiki.gimp.org
 
    RewriteEngine On
-   RedirectPermanent / https://developer.gimp.org/
+   RedirectMatch permanent ".*" https://developer.gimp.org/
 </VirtualHost>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]