• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Phpbb to Xenforo URL redirection

#1
Hi,

I recently moved from Phpbb to Xenforo and I need to make the old URLs link to the new URLs as they are different. How can I do that?

Thanks.
 

Mike

XenForo developer
Staff member
#8
If you're running Nginx, you're going to need an alternative to the rewrite rule as .htaccess doesn't do anything. (This is a good example of where running Nginx requires additional technical knowledge).

I have not tried this, but the following may work:
Code:
location ~ /forum/(viewforum|viewtopic)\.php$ {
try_files /xf/phpbb.php?$uri&$args =404;
}
 
#9
If you're running Nginx, you're going to need an alternative to the rewrite rule as .htaccess doesn't do anything. (This is a good example of where running Nginx requires additional technical knowledge).

I have not tried this, but the following may work:
Code:
location ~ /forum/(viewforum|viewtopic)\.php$ {
try_files /xf/phpbb.php?$uri&$args =404;
}
Where should I use this? In .htaccess?
 

Mike

XenForo developer
Staff member
#10
In the appropriate block in your Nginx config. (If you want to use .htaccess files, you need to use Apache.)