SEO optimization is important to many of us.
Those who understand the importance of this factor are clearly using the "URL Editor" plugin, including for the "Forums" module.
To avoid unwanted indexing and duplicates, we are forced to "robots.txt" use rules, for example:
Just two lines for two new tags allow you to flexibly adjust these values on the frontend side, especially if SEO optimization is important to you and you use custom section templates, for example:
SEO optimization is important to many of us. Those who understand the importance of this factor are clearly using the "URL Editor" plugin, including for the "Forums" module. To avoid unwanted indexing and duplicates, we are forced to "robots.txt" use rules, for example:
But such rules also close indexing of pages that we would like to see in the search, for example:
https://project.com/forums/section/subsection/cat/topic777
but in the topics section, in the list, this link looks like this
https://project.com/forums/section/subsection/cat/topic777?n=last#bottom
that is, it will not be indexed by search engines here...
I suggest in
forums.functions.php
, add to the array of tags for the last post like this:Thus, we get values that we can customize to suit our needs already on the template side, for example:
This will also allow you to show flexibility in which URL to give to guests (including search engines), and which to give to an authorized user.
For example:
Just two lines for two new tags allow you to flexibly adjust these values on the frontend side, especially if SEO optimization is important to you and you use custom section templates, for example:
forums.sections.name-firstsection.tpl
forums.sections.name-secondsection.tpl
forums.sections.name-privatesection.tpl