From 50c40c76d486e593f2a0e64aa2e3ba2135b40b4e Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 11 May 2021 16:28:41 -0500 Subject: [PATCH] Add Apache rewrite for Thoreau's Essays --- config/apache/standardebooks.org.conf | 1 + config/apache/standardebooks.test.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/config/apache/standardebooks.org.conf b/config/apache/standardebooks.org.conf index 6a1be546..38789d94 100644 --- a/config/apache/standardebooks.org.conf +++ b/config/apache/standardebooks.org.conf @@ -223,6 +223,7 @@ Define domain standardebooks.org RewriteRule ^/ebooks/f-marion-crawford/khaled-a-tale-of-arabia(.*?)$ /ebooks/f-marion-crawford/khaled$1 [R=301,L] RewriteRule ^/ebooks/h-rider-haggard/she/maurice-greiffenhagen_charles-h-m-kerr(.*?)$ /ebooks/h-rider-haggard/she$1 [R=301,L] RewriteRule ^/ebooks/ivan-bunin/short-fiction/s-s-koteliansky_d-h-lawrence_leonard-woolf_bernard-guilbert-guerney_the-russian-review/(.+?)$ /ebooks/ivan-bunin/short-fiction/s-s-koteliansky_d-h-lawrence_leonard-woolf_bernard-guilbert-guerney_the-russian-review_natalie-a-duddington/$1 [R=301,L] + RewriteRule ^/ebooks/henry-david-thoreau/a-yankee-in-canada(.*?)$ /ebooks/henry-david-thoreau/essays$1 [R=301,L] # Redirect cover images with caching sha's to the root image # We do this because some sites like Google cache the cover image path, so changing it results in lots of 404s diff --git a/config/apache/standardebooks.test.conf b/config/apache/standardebooks.test.conf index 782f6e4f..46c77da4 100644 --- a/config/apache/standardebooks.test.conf +++ b/config/apache/standardebooks.test.conf @@ -222,6 +222,7 @@ Define domain standardebooks.test RewriteRule ^/ebooks/f-marion-crawford/khaled-a-tale-of-arabia(.*?)$ /ebooks/f-marion-crawford/khaled$1 [R=301,L] RewriteRule ^/ebooks/h-rider-haggard/she/maurice-greiffenhagen_charles-h-m-kerr(.*?)$ /ebooks/h-rider-haggard/she$1 [R=301,L] RewriteRule ^/ebooks/ivan-bunin/short-fiction/s-s-koteliansky_d-h-lawrence_leonard-woolf_bernard-guilbert-guerney_the-russian-review/(.+?)$ /ebooks/ivan-bunin/short-fiction/s-s-koteliansky_d-h-lawrence_leonard-woolf_bernard-guilbert-guerney_the-russian-review_natalie-a-duddington/$1 [R=301,L] + RewriteRule ^/ebooks/henry-david-thoreau/a-yankee-in-canada(.*?)$ /ebooks/henry-david-thoreau/essays$1 [R=301,L] # Redirect cover images with caching sha's to the root image # We do this because some sites like Google cache the cover image path, so changing it results in lots of 404s