add a /p/ route so that we don't break old urls
This commit is contained in:
parent
cd18075ac7
commit
254d800a3b
28
www/p/index.html
Normal file
28
www/p/index.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This file only exists for supporting some old URLs that we're trying not to break.
|
||||||
|
|
||||||
|
Legacy support is tricky.
|
||||||
|
|
||||||
|
:(
|
||||||
|
|
||||||
|
-->
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
if (/cryptpad\.fr$/i.test(window.location.hostname)) {
|
||||||
|
window.location.hostname = 'old.cryptpad.fr';
|
||||||
|
}
|
||||||
|
}());
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>There's nothing here.</p>
|
||||||
|
<p>You probably want to visit <strong><a href="https://old.cryptpad.fr">old.cryptpad.fr</a></strong></p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user