summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-04-23 15:57:47 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-04-23 15:57:47 +0000
commit056fde75271cd7aa6e87bf9f25d3621e9624912e (patch)
tree16dbfe0bb9de75177b028b410efdf9ec6b946b81
parent53bd7ce42ed64f5cd3d15ecbf4da00dc57af8e9b (diff)
downloadbcm5719-llvm-056fde75271cd7aa6e87bf9f25d3621e9624912e.tar.gz
bcm5719-llvm-056fde75271cd7aa6e87bf9f25d3621e9624912e.zip
[Docs] Add 301 redirects for old URLs
llvm-svn: 359004
-rw-r--r--lldb/docs/.htaccess7
-rw-r--r--lldb/docs/conf.py1
2 files changed, 8 insertions, 0 deletions
diff --git a/lldb/docs/.htaccess b/lldb/docs/.htaccess
new file mode 100644
index 00000000000..88e5bcf87c5
--- /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 bc1c99745ad..10d940b1110 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.
OpenPOWER on IntegriCloud