From 056fde75271cd7aa6e87bf9f25d3621e9624912e Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 23 Apr 2019 15:57:47 +0000 Subject: [PATCH] [Docs] Add 301 redirects for old URLs llvm-svn: 359004 --- lldb/docs/.htaccess | 7 +++++++ lldb/docs/conf.py | 1 + 2 files changed, 8 insertions(+) create mode 100644 lldb/docs/.htaccess diff --git a/lldb/docs/.htaccess b/lldb/docs/.htaccess new file mode 100644 index 0000000..88e5bcf --- /dev/null +++ b/lldb/docs/.htaccess @@ -0,0 +1,7 @@ +Redirect 301 /lldb-gdb.html https://lldb.llvm.org/use/map.html +Redirect 301 /tutorial.html https://lldb.llvm.org/use/tutorial.html +Redirect 301 source.html https://lldb.llvm.org/resources/source.html +Redirect 301 projects.html https://lldb.llvm.org/status/projects.html +Redirect 301 goals.html https://lldb.llvm.org/status/goals.html +Redirect 301 varformats.html https://lldb.llvm.org/use/variable.html +Redirect 301 architecture/index.html https://lldb.llvm.org/use/architecture.html diff --git a/lldb/docs/conf.py b/lldb/docs/conf.py index bc1c997..10d940b 100644 --- a/lldb/docs/conf.py +++ b/lldb/docs/conf.py @@ -129,6 +129,7 @@ html_context = { ], } +html_extra_path = ['.htaccess'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. -- 2.7.4