fix(*.php.liquid): correct routing conflicts for dynamic and static pages

This commit is contained in:
Cory Dransfeldt 2025-05-16 11:35:12 -07:00
parent 48f527ab82
commit 30f34e8ff3
No known key found for this signature in database
10 changed files with 16 additions and 57 deletions

View file

@ -28,24 +28,22 @@ ErrorDocument 500 /500/index.html
# dynamic page routing
## artists
RewriteRule ^music/artists/([^/]+)/?$ music/artists/index.php [L]
RewriteRule ^music/artists/([^/]+)/?$ music/artists/dynamic.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]
RewriteRule ^books/([^/]+)/?$ books/dynamic.php [L]
## movies
RewriteRule ^watching/movies/([^/]+)/?$ watching/movies/index.php [L]
RewriteRule ^watching/movies/([^/]+)/?$ watching/movies/dynamic.php [L]
## shows
RewriteRule ^watching/shows/([^/]+)/?$ watching/shows/index.php [L]
RewriteRule ^watching/shows/([^/]+)/?$ watching/shows/dynamic.php [L]
## genres
RewriteRule ^music/genres/([^/]+)/?$ music/genres/index.php [L]
RewriteRule ^music/genres/([^/]+)/?$ music/genres/dynamic.php [L]
## tags
RewriteRule ^tags/([^/]+)(?:/([0-9]+))?/?$ tags/index.php [L]
RewriteRule ^tags/([^/]+)(?:/([0-9]+))?/?$ tags/dynamic.php [L]
## open graph assets