XenForo Redirects for vBulletin

XenForo Redirects for vBulletin 1.1.9

No permission to download
but I'm not even sure how it can work in theory?

For example, this URL - /forums/forumdisplay.php?f=21

There is no "forumdisplay.php" file, and no rewrites or redirects are configured anywhere in the server setup? 🤷‍♀️
 
but I'm not even sure how it can work in theory?

For example, this URL - /forums/forumdisplay.php?f=21

There is no "forumdisplay.php" file, and no rewrites or redirects are configured anywhere in the server setup? 🤷‍♀️

I thought it's written into this plugin and it uses the 'vBulletin import log table' as a map.

On ours for example, if we inputted the URL: domain/forumdisplay.php?f=1

It automatically changes into: domain/index.php?forums/1/
 
I thought it's written into this plugin and it uses the 'vBulletin import log table' as a map.

On ours for example, if we inputted the URL: domain/forumdisplay.php?f=1

It automatically changes into: domain/index.php?forums/1/
That requires the server to be rewriting URLs. Nothing in the vb_importer installation does this. Rereading the importer notes again, under the section where additional steps are needed if you're installed a different location it mentions additional configuration if you're not using Apache (I'm using nginx). I'm guessing those additional steps are necessary even if you are at the same location, otherwise there's no URL rewriting going on, and checking the file structure no vb "replacement" files have been installed by the importer, so it must rely on rewrites.
 
That requires the server to be rewriting URLs. Nothing in the vb_importer installation does this. Rereading the importer notes again, under the section where additional steps are needed if you're installed a different location it mentions additional configuration if you're not using Apache (I'm using nginx). I'm guessing those additional steps are necessary even if you are at the same location, otherwise there's no URL rewriting going on, and checking the file structure no vb "replacement" files have been installed by the importer, so it must rely on rewrites.

That's probably it, you not being in Apache. It works for us, and the only htaccess rewrite is the default htaccess that comes with the installation. Nothing special is manually done or added.
 
I've had two instances for my blogs addon where due to my route selections whenever someone has both this addon and mine installed where they are unable to create different entities/etc.

Is there something I can do in my addon to make it so admins don't have to create a route filter to get my addon to work properly (besides changing the routes up which I already plan on doing for a huge x.X.x release or 2.0.0)?
 
Hi
The site used to reside in the /forums folder, after the conversion & the home page/cms change as xenforo dont have one out the box. The site now resides in the main public_html directory.

If i follow this: https://xenforo.com/docs/xf2/import-notes-vbulletin/#testing-redirects , that breaks the forums page.

The forum/forum was part of the issue for that change to the root folder

So the issue is now that redirects dont work right.

Doesnt work
http://www.spyderlovers.com/forums/showthread.php?t=14261

Works
http://www.spyderlovers.com/showthread.php?t=14261

Doesnt work
https://www.spyderlovers.com/forums/attachments/211814/

Doesnt work
https://www.spyderlovers.com/attachments/211814/

XenForo Redirects for vBulletin 1.1.9 current installed version
 
Last edited:
I am having a similar issue running nginx with vBulletin 4. The original site was:
www.twcenter.net/forums

The new site is
www.twcenter.net

It does work on a non-friendly url but I have only found a few of those from years ago that was created before friendly urls were enabled. I have edited the SourceLocation index file as described and set the import table correctly.

These do not work.

Old

New


Old

New
 
I will confirm that this would work if the site was not in a different directory.

And I have a solution for anyone using nginx and NOT on shared hosting. You need access to the main nginx config file at /etc/nginx/nginx.conf. If you put the first part in a shared hosting like cpanel or ISP Config you will get an error that says "Server directives are not allowed here"

SEO friendly URLs are also a requirement for this.

Put this inside the http block of /etc/nginx/nginx.conf
Code:
map $args $xf_id {
    ~^(\d+)-(.+)$  $2.$1;
}


This part you can include in a Directives block inside CPanel or ISPConfig. If you have other php files you want to redirect just change the name of the file and the XenForo folder you want to direct it to.

Note that the /forums piece in the code below is where my install was located. So it looked like www.example.com/forums

Code:
    location = /forums/member.php {
        return 301 /members/$xf_id/;
    }
    location = /forums/showthread.php {
        return 301 /threads/$xf_id/;
    }
 
    }
    location = /forums/forumdisplay.php {
        return 301 /forums/$xf_id/;
    }


You should be able to disable the XenForo redirect tool after this.
 
Back
Top Bottom