2.2 Archive Fix — Topic Links
Create or edit .htaccess in your archive/ directory:
http://yourforum.com/forum/archive/index.php/t-1234.html Topic Links 2.2 Archive Fix
RewriteEngine On RewriteBase /forum/archive/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^t-([0-9]+)(.html)?$ index.php?t=$1 [L,NC,QSA] Fix for double .html.html RewriteRule ^t-([0-9]+).html.html$ t-$1.html [R=301,L] Fix for missing .html extension RewriteRule ^t-([0-9]+)$ t-$1.html [R=301,L] Create or edit
Always create backups of your archive directory. Topic Links 2.2 Archive Fix
This method catches the broken patterns and redirects them to the corrected PHP handler. For large-scale archives, the PHP or .htaccess fix alone may not be sufficient. Links may be stored incorrectly inside posts or in search engine indexes. Updating Stored Links in the Database Run SQL queries to fix internal links stored in post or thread tables. Always back up your database first.