Forum Moderators: phranque
Redirect 301 /forum/viewforum.php [mysite.com...]
However the problem comes when a URL indexed in Google such as:
/forum/viewtopic.php?t=3428&sid=4f3271ab23efb94
This just gives an error page. I have looked around WW, searched, and looked in the guidelines. I know there is something missing but I'm unsure of what it might be. Is it just a simple * or $ symbol I need to include?
Do you need the old forum URLs to redirect to the root of the new forum, or do you need to redirect each thread to the new thread URL for that thread? (The latter is more work, but much better in the long run).
You'll likely need to use RewriteRule with [R=301,L] instead of Redirect.
I already have a rewrite rule at the top of my .htaccess:
RewriteEngine On
rewritecond %{http_host} ^mysite.com
rewriteRule ^(.*) [mysite.com...] [R=301,L]
This is for the wwww rewrite. This is why I was thinking maybe I'm missing a * or $ sign for the forum redirects.
I understand that the new forum is on the same domain, and in a folder, but my question was whether you want to redirect all the old URLs for every thread to one single new URL, or whether you want each old thread to redirect to the new URL for that thread?