Forum Redirect Script #3
Notifications
Due Date
No due date set.
Depends on
#9 Redirect old-style forum URLs
glitch-city-laboratories/epilogue
Reference: glitch-city-laboratories/epilogue#3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a php script that intercepts requests for forum threads and boards and redirect them to static HTML archives.
Since we're not planning to archive user profiles we don't need redirects for those.
This is complicated by the fact that the forum archive is generated in hierarchical order (board-X/thread-Y/page-0.html) and the forum URL only has a thread id and post id. We would either need to generate an index for the redirector or just use the generated forum.sqlite (which we probably could, since we're in the same package as the archive generator and have access to the forum.sqlite
The above was solved by generating an index of thread id -> board id on the archive side and having the redirector pull it on startup.