Skip to content

Commit

Permalink
Create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
heyturkiye204 authored Sep 21, 2024
1 parent d637ba9 commit 5f073ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions version/20200825-121253/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<title>Yönlendiriliyorsunuz...</title>
<html> <head> <meta http-equiv="Refresh" content="1; URL=/"> </head> </html>
<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>

0 comments on commit 5f073ac

Please sign in to comment.