WordPress to NodeBB
-
@John-Smith Yeah that's fine, the import process is in two steps, what I've done gets you ready for the import plugin.
In fact, @bentael does your import plugin work on latest? I know you said it works up to a certain commit, but does it work beyond this?
-
@John-Smith You would need to redirect
abc.com/%category%/%postname%.html
toefg.com/%category%/%postname%.html
then when you reached the efg.com domain, it would redirect you to the correct page. -
-
@John-Smith I got what you said. I'll try and put it slightly differently.
A google search points to
abc.com/category/postname.html
- this is your current wordpress site.The redirect process basically looks like this:
topics: { oldPath: '<%=_category%>/<%= _postname %>.html', newPath: '/topic/<%= tid %>' },
the redirect to access the topic in NodeBB, will only work on it's own domain. So you would need to set up a redirect from
abc.com/category/postname.html
toefg.com/category/postname.html
(even though no wordpress install exists) so that NodeBB will seeefg.com/category/postname.html
and redirect you toefg.com/topic/tid
. -
@John-Smith 301 is moved permanently. So unless you plan on going back to abc.com at any point, 301 is the correct one to use.
EDIT: One thing you need to be aware of though is that Bing will not follow a stacked redirect*, however Google will. Bing will re-index your data on efg.com. Whereas Google will use the pagerank from abc.com.
*stacked redirect - Having 2 or more 301 redirects in a row.
-
@John-Smith Correct.
-
@John-Smith Having a few issues getting a dev environment set up, but will let you know as soon as I have more info. I'm still quite new to NodeBB, so, I'm picking things up as I go along.
-
by the way, @John-Smith and @a_5mith
the importer will spit out links to create a redirect map.
see this issue for explanation: https://github.com/akhoury/nodebb-plugin-import/issues/29
-
@Hawon-Nguyen Not had time to look at it, this isn'y my full time job unfortunately. I can put what I've got up on github if someone has more time to dedicate to it.
I've hit an obstacle at getting the comments in due to their ID, but I will get to it.