Importing to new Domain - Redirection advice.

Movie Prop Sites

Active member
We are on the verge of importing our site to Xenforo from IPB. Since we are importing, we felt that now was a good time to change our domain name as well.

Our old IPB board is at oldomain.com.
Our new Xenforo will be at newdomain.com.

I really don't want to lose all of our inbounds links as well as our internal links (when members have posted links to other threads within the forum).

While I assume it would take up a lot of db space, is there a way to setup redirects so that all of the old urls automatically redirect to the new, even across the domain change?

I have been trying to read up on this, but am totally lost at this point and want to do my best to ensure we are covered. Any help would be appreciated.
 
Just set up a straight redirect from the old domain to the new one

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)olddomain.com [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]

After importing save the import log, usually as archived_import_log then use the redirection scripts as per normal on the new domain.

Done. Simples :)
 
Well... crud. I thought I had this... now that we are up and running with our new site, the redirect is not working.

@Brogan, I downloaded the redirection files in the link you provided. Edited them to reflect that our xenforo site has a new domain (put the full server path into the 301config.php file) as well as pointed to our archived_import_log file (which I checked and it seems to have all the data we need).

I then went to my old IP.board site, removed all the base files from the root dir and instead just uploaded the new htaccess file, the 301 redirect file and the ips2xf file.

If you go to the root page for the old domain you get an apache page: http://www.thehunterslair.com/

If you go to any of the content pages for the old domain, you get a blank page: http://www.thehunterslair.com/topic/20822-new-members-introduce-yourselves-here/

Any help on what I am doing wrong would be appreciated.
 
Finally figured out what I was doing wrong on this and redirection is now working. However, I do have one question. While redirection for all the old links transfer perfectly, the main home page doesn't redirect. What do I need to do in order to make that happen, and if I do it, will it interfere with the redirection of all the subpages?
 
You can add additional rewrite rules for specific URLs as required.
Just add one to the root .htaccess file on the old domain, or set up a permanent redirect via cPanel.
 
Back
Top Bottom