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.
kuschelyagi added the
Redirector
label 2020-09-03 22:02:02 +00:00
kuschelyagi added a new dependency 2020-09-03 22:07:36 +00:00
Sign in to join this conversation.
1 Participants
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
No description provided.