I have a forum with over 360,000 members and struggled with redirects - here's how I got it all working
vBulletin 4.2.5 ported to XenFORO 2.2.9 (Apache and MariaDB)
Old vb Forum:
https://www.domain.com/forums
New xf Forum:
https://forums.domain.com
After the import was completed, I added the Redirect Plugin 1.1.9
Followed the instructions to the T and no redirects would work and the source forums page was a mess of unformatted CSS.
After much reading I found the solution. First these settings in Basic Options:
View attachment 270258
And this is the exact .htaccess used:
Code:
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^threads/([^/.]+\.[0-9]+.*)$ https://forums.domain.com/threads/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
Hope this helps someone