phpbb to xenforo redirect url

jonhcarter

Member
Registered
Joined
Jul 24, 2019
Messages
18
Points
3

Reputation:

Hello,

Please share PhpBB to xenforo url redirect plugin.

Code:
https://xenforo.com/community/resources/redirection-script-for-phpbb-3-0-x-without-seo-urls.2326/
https://xenforo.com/community/resources/nginx-rewrite-code-for-phpbb-3-0-x-to-xf-with-seo-urls.2728/

Thanks in advance
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,072
Points
173

Reputation:

Hello,

Please share PhpBB to xenforo url redirect plugin.

Code:
https://xenforo.com/community/resources/redirection-script-for-phpbb-3-0-x-without-seo-urls.2326/
https://xenforo.com/community/resources/nginx-rewrite-code-for-phpbb-3-0-x-to-xf-with-seo-urls.2728/

Thanks in advance
jonhcarter
that addon for xenforo 1 u want it ?
 

jonhcarter

Member
Registered
Joined
Jul 24, 2019
Messages
18
Points
3

Reputation:

Yes, I have migrated from phpbb3 to the latest xenforo recently. now I need redirect addon
 

jonhcarter

Member
Registered
Joined
Jul 24, 2019
Messages
18
Points
3

Reputation:

Problem solved. add these codes in your .htaccess file after Rewrite engine on

Code:
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} (^|&)p=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /posts/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /forums/%1 [L,R=301,NC]
RewriteRule ^viewforum\.php$ /forums/%1? [L,R=301,NC]
 

Anonimo88

Member
Registered
Joined
Apr 23, 2021
Messages
12
Points
13

Reputation:

Problem solved. add these codes in your .htaccess file after Rewrite engine on

Code:
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} (^|&)p=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /posts/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /forums/%1 [L,R=301,NC]
RewriteRule ^viewforum\.php$ /forums/%1? [L,R=301,NC]
jonhcarterThis is fine for those who did not have the SEO urls module
 
Top