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
Hi,

for over a year now, I´ve my forum running at http://www.domain.tld/, having links like http://www.domain.tld/topic-t-28.html (thanks to SEO). Now I want to configure the server completely new and want to move the forum to http://forum.domain.tld or http://www..domain.tld/forum. like this, resulting in links like http://forum.domain.tld/topic-t-28.html. But searches in google i.e. will point to the old structure.

Is there already a plugin (or is someone capable of coding one) which migrates link structures? Sadly I´m not so into programming.

(For Wordpress there is a Permalinks Migration Plugin. Maybe this could be used as a basis.)

Thanks in advance, smoo
in the .htaccess find
RewriteEngine On
add after it
Options +FollowSymlinks

RewriteCond %{HTTP_HOST} ^oldDomain.com$ [NC]
RewriteRule (.*) http://forum.newDomain.com/$1 [R=301,L]
hope that what you need
Thanks for answer, pepotiger. One question left: in which htacces do I have to write the text? In the http://www.domain.tld htaccess, or in the http://forum.domain.tld htaccess, or even in both?

Thanks in advance, smoo
in the domain.tld
but that mean you will unable to use the root domain anymore, till you get your new links indexed and ranked, thene you can remove the code and start use the root domain
(root domain = domain.tld)
Ah, that´s not so good. The root should be used for the blog.

Perhaps there is anyone, who could recode the above mentioned wordpress plugin für mybb and so prevent losing the pagerank.

Thanks anyway for your answer.
am afraid there is noway, to redirect ur old links to new links and keep the root domain working without any losing.
but I have got an idea, that maybe more hard but it'll help
send me your url, i'll check and see what I can do
Edit: please add the following code in .htaccess in your domain.tld and tell me about the result

RewriteEngine On
Options +FollowSymlinks
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ http://forum.domain.tld/$1-t-$2.html$3 [R=301,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ http://forum.domain.tld/$1-t-$2-$3.html [R=301,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ http://forum.domain.tld/$1-f-$2-$3.html [R=301,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ http://forum.domain.tld/$1-f-$2.html [R=301,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ http://forum.domain.tld/$1-f-$2-$3-$4-$5-$6.html [R=301,L]
RewriteRule ^(.*)-a-([0-9]+).html$ http://forum.domain.tld/$1-a-$2.html [R=301,L]

please tell me how it's working
Thanks for reply.

I will test it, after server is set up again.
It is working for threads, forums, announcments Smile

Thanks so much.

PS: Is it suggestive in your eyes, to do it with other files like member.php also, or is this to neglect?

/edit: Can "RewriteRule" be combined with "Redirect301" ?
1st, thats good to see it's working just fine.
2nd about the member.php thats why I asked about your site url, to check it in google and see what links format you have there to give you the redirect code for it.
and yes, the whole rewrite code I posted above it's all using 301 friendly redirect
Sorry for not giving response. But the server had to be set up again.

In the past the forum ran under http://www.nerathor.com not it´s installed under http://forum.nerathor.com.


pepotiger Wrote:and yes, the whole rewrite code I posted above it's all using 301 friendly redirect

I asked for it because I read Redirect301 sends the 301 header status to the spider, so it indexes the new link instead of the old, doesn´t it?

greetings, smoo
Pages: 1 2