From 9ddf603ac810961ee42cccbcd92113fc357d4da0 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 12 May 2026 21:57:39 +0700 Subject: [PATCH] webapp netlify redirects update --- frontend/apps/artcraft-webapp/_redirects | 118 +++-------------------- 1 file changed, 16 insertions(+), 102 deletions(-) diff --git a/frontend/apps/artcraft-webapp/_redirects b/frontend/apps/artcraft-webapp/_redirects index 1f8e20f305..d095277ec7 100644 --- a/frontend/apps/artcraft-webapp/_redirects +++ b/frontend/apps/artcraft-webapp/_redirects @@ -1,105 +1,19 @@ -/background-change /index.html 200 -/background-change/ /index.html 200 -/background-change/* /index.html 200 - -/checkout_cancel /index.html 200 -/checkout_cancel/ /index.html 200 -/checkout_cancel/* /index.html 200 - -/onboarding /index.html 200 -/onboarding/ /index.html 200 -/onboarding/* /index.html 200 - -/portal_closed /index.html 200 -/portal_closed/ /index.html 200 -/portal_closed/* /index.html 200 - -/checkout_success /index.html 200 -/checkout_success/ /index.html 200 -/checkout_success/* /index.html 200 - -/checkout* /index.html 200 -/checkout/* /index.html 200 - -/create-image /index.html 200 -/create-image/ /index.html 200 -/create-image/* /index.html 200 - -/create-video /index.html 200 -/create-video/ /index.html 200 -/create-video/* /index.html 200 - -/support /index.html 200 -/support/ /index.html 200 -/support/* /index.html 200 - -/library /index.html 200 -/library/ /index.html 200 -/library/* /index.html 200 - -/download /index.html 200 -/download/ /index.html 200 - -/tutorials /index.html 200 -/tutorials/ /index.html 200 - -/login /index.html 200 -/login/ /index.html 200 -/login/* /index.html 200 - -/media /index.html 200 -/media/ /index.html 200 -/media/* /index.html 200 - -/pricing /index.html 200 -/pricing/ /index.html 200 -/pricing/* /index.html 200 - -/faq /index.html 200 -/faq/ /index.html 200 -/faq/* /index.html 200 - -/news /index.html 200 -/news/ /index.html 200 -/news/* /index.html 200 - -/press-kit /index.html 200 -/press-kit/ /index.html 200 -/press-kit/* /index.html 200 - -# Redirects for growth measurement +# Growth/marketing redirects - must come before the SPA fallback. /reddit /?utm_source=reddit 301 -/news.json /index.html 200 +# Legacy marketing routes - webapp no longer hosts these. +# Send users to the marketing site so old links keep working. +/download https://getartcraft.com/download 301 +/tutorials https://getartcraft.com/tutorials 301 +/tutorials/* https://getartcraft.com/tutorials/:splat 301 +/faq https://getartcraft.com/faq 301 +/faq/* https://getartcraft.com/faq/:splat 301 +/news https://getartcraft.com/news 301 +/news/* https://getartcraft.com/news/:splat 301 +/press-kit https://getartcraft.com/press-kit 301 +/seedance-2 https://getartcraft.com/seedance-2 301 +/blog https://getartcraft.com/blog 301 +/blog/* https://getartcraft.com/blog/:splat 301 -/signup /index.html 200 -/signup/ /index.html 200 -/signup/* /index.html 200 - -/forgot-password /index.html 200 -/forgot-password/ /index.html 200 -/forgot-password/* /index.html 200 - -/welcome /index.html 200 -/welcome/ /index.html 200 -/welcome/* /index.html 200 - -/password-reset /index.html 200 -/password-reset/ /index.html 200 -/password-reset/* /index.html 200 - -/seedance-2 /index.html 200 -/seedance-2/ /index.html 200 -/seedance-2/* /index.html 200 - -# Google ads breakage -/seedance-2{ignore} /seedance-2 301 -/seedance-2{ignore}* /seedance-2 301 -/seedance-2%7Bignore%7D /seedance-2 301 -/seedance-2%7Bignore%7D* /seedance-2 301 - -# Similar URLs -/seedance2 /seedance-2 301 -/seedance2* /seedance-2 301 -/seedance-2.0 /seedance-2 301 -/seedance-2.0* /seedance-2 301 +# SPA fallback - React Router handles every other path. +/* /index.html 200