update 404 redirection

This commit is contained in:
mose 2019-08-30 07:06:18 +08:00
parent f07918a123
commit 7a7f2bcf3b

View file

@ -4,8 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<script type"javascript"> <script type"javascript">
var currentURL = window.location.href; var currentURL = window.location.href;
if (/crapaud-fou.gitlab.io\/portail/.test(currentURL)) { if (/crapaud-fou.org/.test(currentURL)) {
newURL = currentURL.replace(/crapaud-fou.gitlab.io\/portail/g, "crapaud-fou.org"); newURL = currentURL.replace(/(www\.)?crapaud-fou.org/g, "manifeste.crapaud-fou.org");
window.location.replace(newURL); window.location.replace(newURL);
} }
</script> </script>