[geany/www.geany.org] aa5414: Update legacy URL redirects

Enrico Tröger git-noreply at xxxxx
Fri Jun 21 15:42:23 UTC 2019


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Fri, 21 Jun 2019 15:42:23 UTC
Commit:      aa54145d99f3392ef4f39fefb417f4b774ef8821
             https://github.com/geany/www.geany.org/commit/aa54145d99f3392ef4f39fefb417f4b774ef8821

Log Message:
-----------
Update legacy URL redirects


Modified Paths:
--------------
    geany/urls_legacy.py

Modified: geany/urls_legacy.py
15 lines changed, 15 insertions(+), 0 deletions(-)
===================================================================
@@ -18,13 +18,16 @@
 
 URL_MAPPING = {
     # old urls mapped to new ones
+    '/Category/DocumentationToDo': 'https://github.com/geany/geany/issues/',
+    '/Category/Manual': '/documentation/manual/',
     '/Contribute/Developers': '/contribute/development/',
     '/Contribute/Documentation': '/contribute/documentation/',
     '/Contribute/Support': '/contribute/support/',
     '/Contribute/Translators': '/contribute/translation/',
     '/i18n/': '/contribute/translation/statistics/',
     '/Developers/Developers': '/contribute/development/',
     '/Documentation/ChangeLog': 'https://github.com/geany/geany/commits/master',  # page dropped
+    '/Documentation/Documentation': '/documentation/manual/',
     '/Documentation/FAQ': '/documentation/faq/',
     '/Documentation/FAQdata': '/documentation/faq/',
     '/Documentation/Manual': '/documentation/manual/',
@@ -36,13 +39,15 @@
     '/Download/Extras': 'https://wiki.geany.org/',  # page dropped
     '/Download/Git': '/download/git/',
     '/Download/OldExtras': 'https://wiki.geany.org/',  # page dropped
+    '/Download/': '/download/releases/',
     '/Download/Releases': '/download/releases/',
     '/Download/SVN': '/download/git/',
     '/Download/ThirdPartyPackages': '/download/third-party/',
     '/Gallery/Main': '/documentation/screenshots/',
     '/Gallery/Test': '/documentation/screenshots/',
     '/Geany/ChangeLog': 'https://github.com/geany/geany/commits/master',  # page dropped
     '/Geany/FAQ': '/documentation/faq/',
+    '/Geany/Screenshots': '/documentation/screenshots/',
     '/Geany/Support': '/support/',
     '/Main/About': '/about/geany/',
     '/Main/AboutThisSite': '/',
@@ -51,9 +56,11 @@
     '/Main/Blog': '/news/',
     '/Main/BlogArchive': '/news/',
     '/Main/HomePage': '/',
+    '/main/homepage': '/',
     '/Main/Reviews': '/',  # page dropped
     '/Main/Thanks': '/',  # page dropped
     '/Main/WikiSandbox': '/',  # page dropped
+    '/Site/AllRecentChanges/': '/news/feed/',
     '/Support/Bugs': '/support/bugs/',
     '/Support/BuildingFromSource': 'https://www.geany.org/manual/index.html#installation',
     '/Support/BuildingOnWin32': 'https://wiki.geany.org/howtos/win32/msys2',
@@ -70,6 +77,11 @@
     '/Support/RunningOnWindows': 'https://wiki.geany.org/howtos/win32/running',
     '/Support/VerifyGPGSignature': '/support/verify-gpg-signature/',
 
+    # various old deep links (catch all)
+    '/images/.*.png/': '/media/uploads/screenshots/geany_light_2019-05-20.png',
+    '/uploads/Gallery/.*.png/': '/media/uploads/screenshots/geany_light_2019-05-20.png',
+    '/PmWiki/.*': '/',
+
     # migrated news items
     '/Main/20060117': '/news/geany-in-linuxuser/',
     '/Main/20060128': '/news/geany-05-is-out/',
@@ -149,6 +161,9 @@
     '/Main/20180225': '/news/geany-133-is-out/',
     '/Main/20181216': '/news/geany-134-is-out/',
     '/Main/20190104': '/news/geany-1341-is-out/',
+    '/Main/20190428': '/news/geany-135-is-out/',
+    # catch all for everything else (spiders tend to query even non-existent URLs)
+    '/Main/.*': '/news/geany-135-is-out/',
 }
 
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list