feat(reading): clean and refactor routing for books -> reading to separate paths

This commit is contained in:
Cory Dransfeldt 2025-05-16 13:03:55 -07:00
parent 8d9455940e
commit 2666d6ed67
No known key found for this signature in database
21 changed files with 51 additions and 89 deletions

View file

@ -30,10 +30,18 @@ ErrorDocument 500 /500/index.html
## artists
RewriteRule ^music/artists/([^/]+)/?$ music/artists/index.php [L]
## books
RewriteRule ^books/([^/]+)/?$ books/index.php [L]
RewriteRule ^books/years/(\d{4})/?$ books/years/index.html [L]
RewriteRule ^books/?$ books/books.html [L]
## reading
### redirects from books
RedirectMatch 301 ^/books/years/(\d{4})/?$ /reading/years/$1
RedirectMatch 301 ^/books/years/?$ /reading/years
RedirectMatch 301 ^/books/((97[89][-]?\d{1,5}[-]?\d{1,7}[-]?\d{1,7}[-]?[\dXx]))/?$ /reading/books/$1
RedirectMatch 301 ^/books/?$ /reading
### routing
RewriteRule ^reading/?$ reading/index.html [L]
RewriteRule ^reading/years/(\d{4})/?$ reading/years/$1.html [L]
RewriteRule ^reading/books/([\dXx-]+)/?$ reading/books/index.php [L]
## movies
RewriteRule ^watching/movies/([^/]+)/?$ watching/movies/index.php [L]