From 813d4f601cb0b0f007016b086bf2ecefeecce679 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Wed, 10 Jan 2024 01:41:44 -0700 Subject: [PATCH] Artwork: Rewrite rules for artwork editing --- config/apache/standardebooks.org.conf | 2 ++ config/apache/standardebooks.test.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/apache/standardebooks.org.conf b/config/apache/standardebooks.org.conf index 2f75b99e..24fa6372 100644 --- a/config/apache/standardebooks.org.conf +++ b/config/apache/standardebooks.org.conf @@ -302,6 +302,8 @@ Define webroot /standardebooks.org/web RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^post$/" RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)$ /artworks/post.php?artist-url-name=$1&artwork-url-name=$2 [L] + RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)/edit$ /artworks/edit.php?artist-url-name=$1&artwork-url-name=$2 [L] + # Specific config for /bulk-downloads # Both directives are required diff --git a/config/apache/standardebooks.test.conf b/config/apache/standardebooks.test.conf index 905d41f0..0b759d5c 100644 --- a/config/apache/standardebooks.test.conf +++ b/config/apache/standardebooks.test.conf @@ -284,6 +284,8 @@ Define webroot /standardebooks.org/web RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^post$/" RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)$ /artworks/post.php?artist-url-name=$1&artwork-url-name=$2 [L] + RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)/edit$ /artworks/edit.php?artist-url-name=$1&artwork-url-name=$2 [L] + # Specific config for /bulk-downloads # Both directives are required