update _redirects and 404 page

main
Dominic Reich 2 years ago
parent 6b0b17873a
commit 1440f69ffd
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -6,27 +6,17 @@
<div class="prose dark:prose-invert"> <div class="prose dark:prose-invert">
<p>{{ i18n "error.404_description" | emojify }}</p> <p>{{ i18n "error.404_description" | emojify }}</p>
</div> </div>
<div class="prose dark:prose-invert" style="display:none;"> <div class="mt-8 prose dark:prose-invert">
<script type="text/javascript"> <strong>Please use the search on this website!</strong><br />
let url = 'https://chronos.oe7drt.com/inc.php?site='; You may find what you search. Click on the search icon (🔍 top right corner) or hit
url += document.referrer; <kbd>/</kbd> on your keyboard to open the search.
url += '&permalink='; </div>
url += document.URL; <div class="mt-8 prose dark:prose-invert">
url += '&id=' + Math.random(); There are still a lot of URLs in search engines index that refer to old pages
and I'm trying a new method to get them removed from search results. This means,
var xhttp = new XMLHttpRequest(); that I do not redirect 404 errors as 301 errors to the new location as no search
engine seems to update their indexes with the new URLs...<br />
xhttp.open("GET", url, true); The negative effect is, that you have to search the updated URL by hand. What a
xhttp.send(); cruel world that is 😢
</script>
</div> </div>
<noscript>
<div class="prose dark:prose-invert">
<p>
This site uses javascript to report 404 pages. Please let javascript
do it's job on this website. It helps me identify dead links that I can
take care of. <em>Thanks a lot!</em>
</p>
</div>
</noscript>
{{ end }} {{ end }}

@ -1,22 +0,0 @@
/amateur-radio/2021-10-03-running-winlink-and-vara-on-linux/ /posts/2021-10-03-winlink-and-vara-on-linux/ 410
/amateur-radio/2022-01-08-my-weather-station-with-weewx-and-netatmo/ /posts/2022-01-08-my-weather-station-with-weewx-and-netatmo/ 410
/computerstuff/2022-07-04-pfsense-restore-broken-config/ /posts/2022-07-04-pfsense-restore-broken-config/ 410
/computerstuff/2022-08-06-mounting-disk-images-on-linux/ /posts/2022-08-06-mounting-disk-images-on-linux/ 410
/amateur-radio/2021-08-12-running-n1mm-logger-on-linux/ /posts/2021-08-12-running-n1mm-logger-on-linux/ 410
/amateur-radio/2020-01-23-hs-dual-hat-with-pistar-v4/ /posts/2020-01-23-hs-dual-hat-with-pistar-v4/ 410
/amateur-radio/2020-05-17-change-the-bands-in-your-anytone-codeplug/ /posts/2020-05-17-change-the-bands-in-your-anytone-codeplug/ 410
/amateur-radio/2022-07-10-raspberry-pi-4-64-bit-dual_hat-hotspot/ /posts/2022-07-10-raspberry-pi-4-64bit-dual-hat-hotspot-without-pi-star/ 410
/amateur-radio/2020-02-16-my-nextion-2.4-dmr-last-heard-dashboard/ /posts/2020-02-16-nextion-dmr-last-heard-dashboard/ 410
/amateur-radio/2020-11-16-create-your-own-dmr-id-database-file/ /posts/2020-11-16-create-your-own-dmrid-database-file/ 410
/computerstuff/2022-06-26-systemd-slow-reboot-and-shutdown-fixed/ /posts/2022-06-27-systemd-slow-reboot-and-shutdown-fixed/ 410
/amateur-radio/2022-01-08-my-weather-station-with-weewx-and-netatmo/ /posts/2022-01-08-my-weather-station-with-weewx-and-netatmo/ 410
/computerstuff/2022-08-07-using-nfs-shares-on-a-raspberry-pi/ /posts/2022-08-07-using-nfs-on-a-raspberry-pi/ 410
/blog/my-7inch-dmr-dashboard/ /posts/2020-03-28-my-7inch-dmr-dashboard/ 410
/blog/2020-01-23-hs-dual-hat-with-pistar-v4/ /posts/2020-01-23-hs-dual-hat-with-pistar-v4/ 410
/equipment/transceiver/yaesu-fd891/ /equipment/transceiver/yaesu-ft891/ 410
/amateur-radio/2020-01-27-aprs-with-the-hytera-pd785g/ /posts/2020-01-27-aprs-with-hytera-pd785g-v9/ 410
/2020-01-02-how-to-get-an-amateur-radio-license-in-austria/ /posts/2020-01-02-how-to-get-an-amateur-radio-license-in-austria/ 410
/amateur-radio/* /posts/:splat 410
/computerstuff/* /posts/:splat 410
Loading…
Cancel
Save