What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

xF2 Add-on Redirection Script for phpBB 3.2/3.3+ (without SEO URLs) htaccess 1.0 1.0

xF2 Add-on
< Previous | Next >
This script is based on different htaccess rules posted on xenforo forums and my own editing.

Requirements:

This script assumes you have friendly urls enabled for Xenforo.

What it will do

"/viewforum.php?f=X" will redirect to "/forums/X/" and
"/viewtopic.php?t=X" will redirect to "/threads/X/" and
"/viewtopic.php?p=X" will redirect to "/posts/X/".
"/memberlist.php?mode=viewprofile&u=X" will redirect to "/members/X/".

If you have /threads/title.x/ type of urls for xenforo, there might a second redirect by xenforo itself where it would redirect from threads/x/ to threads/title.x/

Installation
Insert this in your .htaccess file preferably BEFORE or ABOVE Xenforo friendly url redirect ( RewriteRule ^.*$ index.php [NC,L])

Apache config:
Please, Log in or Register to view codes content!

Done. That's all there is to it

If your forum is installed at say /forums/ then add /forums/ before the redirect in above script for example /threads/%2/? will be /forums/threads/%2/?
Similar resources Most view View more
Top