[Docs] Add 301 redirects for old URLs
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Apr 2019 15:57:47 +0000 (15:57 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 23 Apr 2019 15:57:47 +0000 (15:57 +0000)
llvm-svn: 359004

lldb/docs/.htaccess [new file with mode: 0644]
lldb/docs/conf.py

diff --git a/lldb/docs/.htaccess b/lldb/docs/.htaccess
new file mode 100644 (file)
index 0000000..88e5bcf
--- /dev/null
@@ -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
index bc1c997..10d940b 100644 (file)
@@ -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.