Skip to content
Snippets Groups Projects
Verified Commit e040dc85 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Make php redirects permanent (301)

Also change from sftp upload to ftp upload
parent ae420040
No related branches found
No related tags found
No related merge requests found
<?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 /"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment