Question on redirect script for imports


Well-known member
A question about Kier's redirection script:

He mentions about including his files among your vbulletin files.

However, I'm looking to set up my xenforo install on a different domain, import everything from the original domain, and then redirect everything to the new xenoforo domain.

Does this mean I would not be able to use Kier's redirect script for vbseo to xenforo?


XenForo developer
Staff member
The redirects need to cover your old URLs, so you at least need something in place to cover those. The redirect scripts need to be able to access the XF files (and database) to look up IDs. The scripts will redirect to whatever you enter as XF's URL.

There are a few different ways to tackle redirects like this. If you're maintaining IDs, you can get away with just doing redirects via something like .htaccess -- you don't need actual scripts.


XenForo developer
Staff member
You can use that tool to generate the redirects and simply adjust the target to point to the correct URL (using the same method to insert the ID).


Well-known member
Terribly sorry about this, but I'm afraid I'm a little confused. - vb3 + vbseo domain
.com - XF domain

The vb3 URLs follow a custom structure: /forum/[ID]-[name].html
The XF URLs only contain IDs: /forum/[ID]

I had planned to simply 301 redirect the to the .com

But what you're saying is that it would be better to install Kier's script on the, and redirect those URLs, before the rule for redirecting the domain to the .com

And the .com with the XF install would need no additional rewrite rules?

Sincere apologies if I've misunderstood.


XenForo moderator
Staff member
A variety of ways to do it.

I would simply forward everything as is from the to the .com

RewriteCond %{HTTP_HOST} ^(.*) [NC]
RewriteRule ^(.*)$$1 [R=301,L]

and then have a htaccess on the .com which converts the vbseo url to a normal vb url, and then use the redirect scripts.

You could also do a direct write from vbseo to xenforo if your regex kungfu is good :)