Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
heyturkiye204 authored Sep 21, 2024
1 parent fe2b511 commit d637ba9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions version/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +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 d637ba9

Please sign in to comment.