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">
<script type"javascript">
var currentURL = window.location.href;
if (/crapaud-fou.gitlab.io\/portail/.test(currentURL)) {
newURL = currentURL.replace(/crapaud-fou.gitlab.io\/portail/g, "crapaud-fou.org");
if (/crapaud-fou.org/.test(currentURL)) {
newURL = currentURL.replace(/(www\.)?crapaud-fou.org/g, "manifeste.crapaud-fou.org");
window.location.replace(newURL);
}
</script>