-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
Milestone
Description
To preserve links through the mass rename in #98, ideally we could rewrite all urls to web-lower-case
as suggested by @ctrueden:
# https://stackoverflow.com/a/2924084/1207769
RewriteMap lc int:tolower
RewriteRule ^/(media/.*)$ /${lc:$1} [R=301]
# https://stackoverflow.com/a/1279758/1207769
RewriteRule ^(/media/.*/[^/]*?)_([^/]*?_[^/]*)$ $1-$2 [N]
RewriteRule ^(/media/.*/[^/]*?)_([^/_]*)$ $1-$2 [R=301]
This needs to be tested, and if it doesn't work then we need auto-generated redirects for each rename.