diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a81067aa6e76b5a9fdd944e9bb003921f76c5009..3254ba58c7c24e57f370c09ea21227840bb5bf00 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,11 +2,11 @@ image: beagle/sphinx-build-env:latest
 
 on_latest:
   script:
-  - sphinx-build -b html . public/latest/
-  - sphinx-build -M latexpdf . public/latest/
-  - mv public/latest/latex/beagleboard-docs.pdf public/latest/
-  - echo "/ /latest/ 302" > public/_redirects
-  - rm -rf public/latest/latex
+  - rm -rf public
+  - sphinx-build -b html . public
+  - sphinx-build -M latexpdf . public
+  - mv public/latex/beagleboard-docs.pdf public
+  - rm -rf public/latex
   artifacts:
     name: "latest"
     paths: