Forum Redirect Script #3
	
		Labels
		
	
	
	
	No labels
	
		
			
	
	Forums archiver
		
			Redirector
		
			Wiki archiver
		
		
	
		No milestone
		
			
		
	No project
	
		
	
	
	
	
		No assignees
		
	
	
		
			
		
	
	
	
		1 participant
	
	
		
		
	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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	
	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.