diff --git a/index.php b/index.php
index 39d8288..3ed7533 100644
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@ if (!empty($_GET['url'])) {
mkdir($hashfolderpath, 0700, true);
file_put_contents($hashfilepath, $url);
- $content = './?'.$urlhash.'';
+ $content = 'http://'.$_SERVER['HTTP_HOST'].'/?'.$urlhash.'';
} elseif (!empty($_GET)) {
$urlhash = key($_GET);