mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
List artwork by artist via /artworks/<artist-name>
This commit is contained in:
parent
780be15ed0
commit
cad2f5f730
8 changed files with 63 additions and 12 deletions
|
@ -296,6 +296,8 @@ Define webroot /standardebooks.org/web
|
|||
RewriteRule ^/bulk-downloads/([^/\.]+)$ /bulk-downloads/collection.php?class=$1
|
||||
|
||||
# Rewrite rules for cover art
|
||||
RewriteRule ^/artworks/([^\./]+?)$ /artworks/artist.php?artist-url-name=$1 [L]
|
||||
|
||||
RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^get$/"
|
||||
RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)$ /artworks/get.php?artist-url-name=$1&artwork-url-name=$2 [L]
|
||||
|
||||
|
|
|
@ -278,6 +278,8 @@ Define webroot /standardebooks.org/web
|
|||
RewriteRule ^/bulk-downloads/([^/\.]+)$ /bulk-downloads/collection.php?class=$1
|
||||
|
||||
# Rewrite rules for cover art
|
||||
RewriteRule ^/artworks/([^\./]+?)$ /artworks/artist.php?artist-url-name=$1 [L]
|
||||
|
||||
RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^get$/"
|
||||
RewriteRule ^/artworks/([^/\.]+)/([^/\.]+)$ /artworks/get.php?artist-url-name=$1&artwork-url-name=$2 [L]
|
||||
|
||||
|
|
|
@ -22,5 +22,6 @@ CREATE TABLE `Artworks` (
|
|||
`Notes` TEXT NULL DEFAULT NULL
|
||||
PRIMARY KEY (`ArtworkId`),
|
||||
KEY `index1` (`Status`),
|
||||
KEY `index2` (`UrlName`)
|
||||
KEY `index2` (`UrlName`),
|
||||
KEY `index3` (`ArtistId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue