Forum Redirect Script #3

Open
opened 2020-07-13 04:06:15 +00:00 by kuschelyagi · 2 comments
Owner

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.

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.
Author
Owner

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

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
Author
Owner

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#9 Redirect old-style forum URLs
glitch-city-laboratories/epilogue
Reference
glitch-city-laboratories/epilogue#3
No description provided.