From 457d82cf6c35f8bf3a762c7185d46a14ddc9c304 Mon Sep 17 00:00:00 2001 From: Alok Date: Tue, 8 Oct 2024 00:06:34 +0530 Subject: [PATCH] fix redirects --- public/_redirects | 50 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/public/_redirects b/public/_redirects index b267acbc..f9ddcb4f 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,9 +1,9 @@ # Redirect default subdomain to primary domain -https://meteoricteachings.pages.dev/* https://alokprateek.in/:splat 301 -http://meteoricteachings.pages.dev/* https://alokprateek.in/:splat 301 +# https://meteoricteachings.pages.dev/* https://alokprateek.in/:splat 301 +# http://meteoricteachings.pages.dev/* https://alokprateek.in/:splat 301 http://alokprateek.in/* https://alokprateek.in/:splat 301 -http://www.alokprateek.in/* https://alokprateek.in/:splat 301 -https://www.alokprateek.in/* https://alokprateek.in/:splat 301 +# http://www.alokprateek.in/* https://alokprateek.in/:splat 301 +# https://www.alokprateek.in/* https://alokprateek.in/:splat 301 # ---------------------------------------------------------------------- # Page redirects @@ -20,17 +20,16 @@ https://www.alokprateek.in/* https://alokprateek.in/:splat 301 /pressdoc.html /terms 301 /hardware/ /faqs/uses/ 301 /development/web-accessibility/ /articles/web-accessibility 301 -/development/jekyll-api-gh-pages-and-json-feed/ /articles/jekyll-api-gh-pages-and-json-feed 301 /development/aws-terms/ /articles/aws-terms 301 /deno-guide/ /articles/start-with-deno 301 /work/web-experiments/ /works/web-experiments/ 301 -https://alokprateek.in/work/tubelight-comm/ /works/tubelight-comm 301 -https://alokprateek.in/work/the-gentleman-show/ /works/the-gentleman-show 301 -https://alokprateek.in/work/harper-collins/ /works/harper-collins 301 -https://alokprateek.in/pricing/ /faqs/pricing 301 -https://alokprateek.in/development/jekyll-pwa/ /articles/jekyll-pwa 301 -https://alokprateek.in/categories/ /tag/ 301 -https://alokprateek.in/bibliophile-diaries/ /bibliophilediaries/ 301 +/work/tubelight-comm/ /works/tubelight-comm 301 +/work/the-gentleman-show/ /works/the-gentleman-show 301 +/work/harper-collins/ /works/harper-collins 301 +/pricing/ /faqs/pricing 301 +/development/jekyll-pwa/ /articles/jekyll-pwa 301 +/categories/ /tag/ 301 +/bibliophile-diaries/ /bibliophilediaries/ 301 # ---------------------------------------------------------------------- # Feed redirects @@ -41,26 +40,25 @@ https://alokprateek.in/bibliophile-diaries/ /bibliophilediaries/ 301 /feed /feed.xml 301 /atom.xml /feed.xml 301 /everything.xml /feed.xml 301 -https://blog.alokprateek.in/feed.xml /feed.xml 301 # ---------------------------------------------------------------------- # Old blog redirects # ---------------------------------------------------------------------- -https://blog.alokprateek.in/ https://alokprateek.in/articles 301 -https://blog.alokprateek.in/work/ /works 301 -https://blog.alokprateek.in/privacy/ /terms 301 -https://blog.alokprateek.in/hardware/ /faqs/uses/ 301 -https://blog.alokprateek.in/contact/ /contact 301 -https://blog.alokprateek.in/api/ https://alokprateek.in 301 -https://blog.alokprateek.in/?amp=1 https://alokprateek.in 301 -https://blog.alokprateek.in/development/web-accessibility/ /articles/web-accessibility 301 -https://blog.alokprateek.in/development/aws-terms/ /articles/aws-terms 301 -https://blog.alokprateek.in/development/jekyll-api-gh-pages-and-json-feed/ /articles/jekyll-api-gh-pages-and-json-feed 301 +# https://blog.alokprateek.in/ https://alokprateek.in/articles 301 +# https://blog.alokprateek.in/work/ /works 301 +# https://blog.alokprateek.in/privacy/ /terms 301 +# https://blog.alokprateek.in/hardware/ /faqs/uses/ 301 +# https://blog.alokprateek.in/contact/ /contact 301 +# https://blog.alokprateek.in/api/ https://alokprateek.in 301 +# https://blog.alokprateek.in/?amp=1 https://alokprateek.in 301 +# https://blog.alokprateek.in/development/web-accessibility/ /articles/web-accessibility 301 +# https://blog.alokprateek.in/development/aws-terms/ /articles/aws-terms 301 +# https://blog.alokprateek.in/development/jekyll-api-gh-pages-and-json-feed/ /articles/jekyll-api-gh-pages-and-json-feed 301 # ---------------------------------------------------------------------- # Dynamic redirects # ---------------------------------------------------------------------- -/work/* /works/* 301 -/saas-guide/* /saasguide/* 301 -/bibliophile-diaries/* /bibliophilediaries/* 301 +/work/* /works/:splat 301 +/saas-guide/* /saasguide/:splat 301 +/bibliophile-diaries/* /bibliophilediaries/:splat 301