MyBB Community Forums

Full Version: Link migration Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
ok man, in the end of the code that in your .htaccess, add the following
RewriteCond %{QUERY_STRING} ^action=profile&uid=([0-9]+)$ [NC]
RewriteRule ^member.php$ http://forum.nerathor.com/member.php?action=profile&uid=%1 [R=301]
after adding the code, go to this url
http://www.nerathor.com/member.php?actio...le&uid=274
it'll redirect you to
http://forum.nerathor.com/member.php?act...le&uid=274

and check your old links with a tool like This
and you will see it's say HTTP/1.1 301
regards.
Thanks for the link, nice to know.

I added the two lines, work like a charm.

But when I test http://www.nerathor.com/arenrechner.php it gives me a 302. I wrote RewriteRule arenarechner.php$ http://forum.nerathor.com/arenarechner.php in the .htacces.
Working with Redirect permanent or Redirect 301 gives me a 404.

I wrote in the German mybb support board the question before I came here. Nobody could answer me there. Do you mind me, with giving you credits, taking your solution to this forum?

greetings, smoo
if the file just arenarechner.php without any querys, so use the following

RewriteRule ^arenarechner.php$ http://forum.nerathor.com/arenarechner.php [R=301]
it'll do what you need
and for the credit, it's my pleasure.
Pages: 1 2