SEO and friendly urls
-
Hello!!!
I would like to be removed from the url 'category', 'cid', 'pid', 'topic'. I think to make it through the plug-in, as not all need it, not to touch the source code.
To change this: myforum.com/category/22/categoryname
To: myforum.com/categorynameAnd, to change this: myforum.com/category/23/subcategoryname
To: myforum.com/categoryname/subcategorynameSame with topics.
Could you suggest something? What hooks require and in general it is possible to do it by means of plug-in? I on the right path?
Topic created in response to the request @julian in issue NodeBB (https://github.com/NodeBB/NodeBB/issues/2846).
As I understand it, the plugin problem can not be solved?
-
In php this problem can be solved by means of .htaccess rules. With NodeBB or NodeJS i don't know how.
-
@sergej-saveljev As I understand, @Julian and @Pitaj just pointed out that the functionality it is not going to be in the core of nodebb, but it is possible to achive that behaviour via a plugin.
As @Julian explained, you would have to use the slug, when a request its made, and search it across the post or category indexes, so you find the corresponding cid, pid etc to access it.
I'm not a plugin expert, i'm sure @pitaj can explain the plugin approach to you a lot of better.
-
@José-Ángel-Rey-Liñares I need support when creating a plug-in, as this will be my first plugin NodeBB and he, as I understand it, will not be easy. Maybe he will be in demand for new projects.
-
@sergej-saveljev you're in the right place then. I can't guide throught across the steps of creating it, because i'm just entering in the nodebb world too. But using the documentation and asking your doubts in the forum (plugin development category) i think you will get it to work.
-
@José-Ángel-Rey-Liñares I believe that
-
@sergej-saveljev said:
I need support when creating a plug-in, as this will be my first plugin NodeBB and he, as I understand it, will not be easy.
We may have a talk about NodeBB and its plugins in Russian over VoIP (Teamspeak?) if you want to. I can point you some pitfalls, and even some best practices in plugin development
-
It was an amazing meeting, we were speaking more than 5 hours non-stop
I'd like to join "NodeBB speaking club" if there were one. -
@julian someone should set up a mumble server at
voice.nodebb.org
or something (with channels for different languages). -
Probably it is necessary to change the function of the controller categories,
categoriesController.get
insrc/controllers/categores.js
file. Can i just overwrite it? If so, how?I create plugin and include frontend script, what's next? By the way, about https://docs.nodebb.org/en/latest/plugins/create.html page, it's cruel, guys! Very little information and some of it is not true.
-
Hey, I see NodeBB doesn't convert symbols in url to latin. So there's ugly and not SEO-friendly links like this:
Is it possible to fix this?
-
@nam-ly said in SEO and friendly urls:
this is important about SEO
Incorrect. Having
topic
orpost
in your URL will never lower your SEO score... SEO score being itself such an abstract concept, focus on delivering high quality content instead of trying to optimize for silly things like this.The slugified url as presented is ideal already.