-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
29 lines (27 loc) · 949 Bytes
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- Kaynak koda bakan kardeşim hoş geldin aramıza -->
<title>404 | Aradığınız Sayfa Bulunamadı!</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
body {
font-family: 'Montserrat', sans-serif;
padding: 50px;
color: black; /* Metin rengi varsayılan olarak siyah */
}
</style>
<center><h1>404</h1></center>
<center><p>Aradığınız sayfa bulunamadı!</p></center>
<center><p><a href="/">← Geri Dön</a></p></center>
<script>
// Sayfa yüklendiğinde çalışacak kod
window.onload = function() {
// Mevcut URL'yi al
var currentURL = window.location.href;
// Eğer URL ".html" ile bitiyorsa
if (currentURL.endsWith(".html")) {
// ".html" kısmını kaldır
var newURL = currentURL.slice(0, -5);
// Yeni URL'ye yönlendir
window.location.href = newURL;
}
};
</script>