Hilmer
Active member
I can't get the redirect to work. Nothing happens when I enter the old forum

I would like to redirect users that enter our old phpBB forum direct at www.hilmer-koch.dk/foto-forum
to the new Xenforo one at www.hilmer-koch.dk/forum
It would be perfect not to loose the page ranking in the search engines but I don't know how a redirect will affect this?
I have tried this code:
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /foto-forum/threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /foto-forum/forums/%1 [L,R=301,NC]
So not this is how my htaccess file looks:
# # Uncomment the statement below if you want to make use of # HTTP authentication and it does not already work. # This could be required if you are for example using PHP via Apache CGI. #
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /foto-forum/threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /foto-forum/forums/%1 [L,R=301,NC]

I would like to redirect users that enter our old phpBB forum direct at www.hilmer-koch.dk/foto-forum
to the new Xenforo one at www.hilmer-koch.dk/forum
It would be perfect not to loose the page ranking in the search engines but I don't know how a redirect will affect this?
I have tried this code:
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /foto-forum/threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /foto-forum/forums/%1 [L,R=301,NC]
So not this is how my htaccess file looks:
# # Uncomment the statement below if you want to make use of # HTTP authentication and it does not already work. # This could be required if you are for example using PHP via Apache CGI. #
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
RewriteCond %{QUERY_STRING} (^|&)t=([0-9]+)(&|$) [NC]
RewriteRule ^viewtopic\.php$ /foto-forum/threads/%2? [L,R=301,NC]
RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
RewriteRule ^viewforum\.php$ /foto-forum/forums/%1 [L,R=301,NC]