• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 redirects from SMF to Xenfor with Domain change

#1
About to jump and want to make sure i do not screw up this part of it
current server is at http://southerncaliforniahunting.com/huntersforum/
new site is at http://schoutdoors.com

thread ID's were imported and seem consistent
http://southerncaliforniahunting.com/huntersforum/index.php?topic=6280.0
http://schoutdoors.com/index.php?threads/6-5-rsaum-gap-rifles-are-in-the-house.6280/

the old site had a joomla site at http://southerncaliforniahunting.com and the forum at http://southerncaliforniahunting.com/huntersforum/

We want everything that is not a thread to go to root of the new domain name.

Thank you for the help :)
 

Jake Bunce

XenForo moderator
Staff member
#2
Add these rules to the top of the .htaccess file in http://southerncaliforniahunting.com/huntersforum :

Code:
RewriteEngine On

# redirect threads
RewriteCond %{QUERY_STRING} (^|\?|&)topic=([0-9]+)\.[0-9]+($|&)
RewriteRule ^index\.php$ http://schoutdoors.com/index.php?threads/%2/ [R=301,L]

# catch all for everything else
RewriteRule ^.*$ http://schoutdoors.com/? [R=301,L]
 
#4
ok we just made the change and everything is redirecting back to the home page on the new site. none of the old links are redirecting properly

Thanks For the Help
 
#6
i am sorry... the redirects are working great. i bookmarked a few links before the switch in a forum i closed. Sorry and thank you again :) so far very very happy and our users are happy