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}}');
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"
lftp -c "open --user --env-password -p 2121 s; mirror -c --verbose=9 -e -R -L ./build /"
lftp -c "set ftp:ssl-allow no; open --user --env-password; 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