Commit e040dc85 authored by Isabella Skořepová's avatar Isabella Skořepová

Make php redirects permanent (301)

Also change from sftp upload to ftp upload
parent ae420040
Pipeline #44 skipped
<?php header('location: {{config.baseurl}}/{{content}}');
<?php
header("HTTP/1.1 301 Moved Permanently");
header('location: {{config.baseurl}}/{{content}}');
......@@ -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 /"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment