From e040dc853d5e982ae3c8f1358eddee5573a9f75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Sko=C5=99epa?= <jakub@skorepa.info> Date: Sat, 26 Mar 2016 20:00:37 +0100 Subject: [PATCH] Make php redirects permanent (301) Also change from sftp upload to ftp upload --- theme/templates/redirect.php.nunj | 4 +++- upload | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/theme/templates/redirect.php.nunj b/theme/templates/redirect.php.nunj index 355cc0a5..3adac2ad 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 5b19b66f..c047766b 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 /" -- GitLab