diff --git a/redir.html b/redir.html
index f756f7ec..b538b02e 100644
--- a/redir.html
+++ b/redir.html
@@ -7,7 +7,7 @@
diff --git a/scripts/sync-version-prod.sh b/scripts/sync-version-prod.sh
index fa0b927f..f792196b 100755
--- a/scripts/sync-version-prod.sh
+++ b/scripts/sync-version-prod.sh
@@ -21,5 +21,5 @@ mkdir -p $TMPDIR
git archive $VERSION | tar x -C $TMPDIR
echo "Copying to $DESTPATH..."
rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules --copy-dest=$DEVPATH -rilz --chmod=a+rx -e "ssh -p 2222" $TMPDIR/ $SUBMODS $DESTPATH
-rsync --stats -rpilvz --chmod=a+rx -e "ssh -p 2222" ./gen ./mame $DESTPATH/
+rsync --stats -rpilvz --chmod=a+rx -e "ssh -p 2222" --copy-dest=$DEVPATH ./gen ./mame $DESTPATH/
echo "Done."