Forum Moderators: phranque
I recently moved a php-nuke forum to a plain phpbb one, and as expected all topics URLs have changed:
from: www.mydomain.com/modules.php?name=Forums&file=viewtopic&t=1
to: www.mydomain.com/viewtopic.php?t=1
what I wanted to do now was catching all old URLs and redirecting them to the new ones.
I've reading documentation here:
[webmasterworld.com...]
[webmasterworld.com...]
so I wrote this in my .htaccess:
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^modules\.php\?name=Forums&file=viewtopic&(.*) /forum/viewtopic.php?$1 [R=301,L] but this is not working at all. I suppose I have some stupid (or really huge) mistake in the rule but sincerely I don't know what to try.
Any ideas?
RewriteEngine On
Options +FollowSymlinks
rewritecond %{QUERY_STRING} ^name=Forums&file=viewtopic&(.*)$
RewriteRule ^modules\.php? /forum/viewtopic.php?%1 [R=301,L]
[webmasterworld.com...]