diff --git a/theme/templates/redirect.php.nunj b/theme/templates/redirect.php.nunj
index 355cc0a55f2464e3ce4741d13123d1dcbd1e7814..3adac2ade4ba0d4287db44ae6c2dadc782fd56b5 100644
--- a/theme/templates/redirect.php.nunj
+++ b/theme/templates/redirect.php.nunj
@@ -1 +1,3 @@
-<?php header('location: {{config.baseurl}}/{{content}}');
+<?php
+header("HTTP/1.1 301 Moved Permanently");
+header('location: {{config.baseurl}}/{{content}}');
diff --git a/upload b/upload
index 5b19b66f8dcae36d161fa2c9a6fce5c680e33347..c047766bd768fec9c5fb1c3f6d8c11550394955f 100755
--- a/upload
+++ b/upload
@@ -12,4 +12,4 @@ echo "Site compiled"
 chmod a+X build -R
 
 echo "Uploading to nove.ok1kvk.cz"
-lftp -c "open --user ok1kvk.cz-nove --env-password -p 2121 sftp://ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
+lftp -c "set ftp:ssl-allow no; open --user ok1kvk.cz-nove --env-password ftp://ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"