XF 1.3 I need to redo my redirects, could someone help?

petertdavis

Well-known member
Howdy,
I converted my coin forum last year, but seem to have not got all my redirects done right. I'm revisiting it now and hope to get it right this time. The problem I've found is that in December of 2008, I switched domains from cointalk.org to cointalk.com. After I switched, I installed vbSEO, but that's another story. The cointalk.org urls were all the standard vbulletin of the day urls, such as:

http://www.cointalk.org/showthread.php?t=40843
which should redirect to
https://www.cointalk.com/threads/since-when-did-ngc-do-this.40843/

and
http://cointalk.org/showthread.php?t=40832
which should redirect to
https://www.cointalk.com/threads/olympic-handover-coin-launched.40832/

etc...

How should I write the .htaccess file? Right now, all I have is this:
Redirect 301 / http://www.cointalk.com/
which of course doesn't do the job.
 
It looks like you're already redirecting the .org to the .com correctly. So then you just need to install the necessary showthread.php redirects (using the resource) on the new domain and the links should work as expected.
 
I need to redirect the old cointalk.org urls directly to the new cointalk.com xenforo urls because after I switched to cointalk.com I was using vbSEO and already have a redirect for those on cointalk.com. I'm sure I saw @Jake Bunce post something just like this before, but couldn't find the thread when I was searching for it.
 
For a direct redirect, add these rules to the top of the .htaccess file in the web root for cointalk.org:

Code:
RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)t=([0-9]+)($|&)
RewriteRule ^showthread\.php$ https://www.cointalk.com/threads/%2/? [R=301,L]
 
Top Bottom