Download Redirection script for phpbb 3.2/3.3+ (without seo urls) htaccess 1.0
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])
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/?
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])
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/?
Relate Threads