WordPress to NodeBB
-
@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.
-
@a_5mith Any updates for this yet? I have been waiting since forever.
-
@Flexi-Hackify said:
@a_5mith Any updates for this yet? I have been waiting since forever.
@a_5mith said:
I've hit an obstacle at getting the comments in due to their ID, but I will get to it.
I've not touced the wordpress plugin for a while. You're welcome to take a look to see how if it's easily doable. The issue is the IDs of the comments start at 1, as do the IDs of the posts. But there's nothing linking the comment IDs to the topic ID. From what I could see, I've not looked at this for a while. I may look now 4.0 is out and see how it's changed. But if someone else wishes to take a look at this, I won't say no.