Remove basic Xenforo 2 routes with XenVn add-on

Remove basic Xenforo 2 routes with XenVn add-on

Remove-basic-Xenforo-2-routes-with-XenVn-add-on.webp


Xenforo default link for categories, forums, threads, resources, attachments, members:
site.com/categories/category-title.1/
site.com/forums/forum-title.1/
site.com/threads/thread-title.1/
site.com/resources/categories/resources-category.1/
site.com/resources/resources-title.1/
site.com/attachments/attachment-title.1/
site.com/members/member-title.1/

With XenVn add-on we can remove /categories, /forums, /threads, /resources, /attachments/, members/ route, helps improve URL SEO:
site.com/category-title.c1/
site.com/forum-title.f1/
site.com/thread-title.t1/
site.com/resources-category.s1/
site.com/resources-title.r1/
site.com/attachment-title.a1/
site.com/member-title.m1/
When accessing site.com/forums/forum-title.1/ will automatically redirect to site.com/forum-title.f1/, similar to threads, resources,... (and vice versa)

Shortened URLs:
site.com/c1/ => site.com/category-title.c1/
site.com/f1/ => site.com/forum-title.f1/
site.com/t1/ => site.com/thread-title.t1/
site.com/s1/ => site.com/resources-category.c1/
site.com/r1/ => site.com/resources-title.r1/
site.com/a1/ => site.com/attachment-title.a1/
site.com/m1/ => site.com/member-title.m1/


9-XenVn-Setting-Extra.webp


Describe (new):
  • Disable: Use default routes
  • Disable (redirect): Use default routes, redirect URL from UnRoute -> Route
  • Enable: Remove basic routes, redirect URL from Route -> UnRoute
Example:
Redirect URL from UnRoute -> Route
site.com/forum-title.f1/ -> site.com/forums/forum-title.1/
Redirect URL from Route -> UnRoute
site.com/forums/forum-title.1/ -> site.com/forum-title.f1/

Conditions to use this feature:
  • Use full friendly URLs
  • Use Romanize titles in URLs
  • Don't use URL portion
  • Use default Route
  • Don't use Route filter
This is a feature part of XenVn add-on, see details here:
https://xenvn.com/threads/xenvn-all-in-one-tools-for-xenforo-2.516/


Xenforo 2, remove /threads from url, remove /forums from url, remove /resources from url, changing / removing "forums" & "threads" in URL,...
 
Last edited:
This is a very risky option. But it is also necessary.
Unfortunately, XenForo's URL structure cannot be analyzed by some SEO analysis sites because it is not "SEO-friendly".
I wonder if there is an automatic option to create a redirect to the .htaccess file when we change the URL structure, like in WordPress?
NOTE: I would love to use this on my site but I have about 25k indexed content. As soon as I switch to this, Google will start dropping my traffic.
 
Last edited:
Hello. How can I change forum urls to site.com/forumtest/ or site.com/id/forumtest/ instead of site.com/forumtest.x/ by removing the id address? I want to change the dot sign in forum and topic ids.
 
Hello. How can I change forum urls to site.com/forumtest/ or site.com/id/forumtest/ instead of site.com/forumtest.x/ by removing the id address? I want to change the dot sign in forum and topic ids.
People try to remove slashes for SEO. But you want the opposite.
You can change the url structure using XF's built-in function. Router filter.

admin.php?route-filters/
 
Hi @xenvn,

Well, can you remove the ‘threads’ part and create a route filter as site.com/title-name.id/?
 
Similar threads Most view View more
Back
Top Bottom