vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323522

Remove "forum" from the url /forums/forum/ - VB 5.2.2
by talhatc
25 Sep 2016 15:54

Hi,

We upgraded from VB 4 to VB 5.2.2 and we've expereinced many many broken links. Also, the biggest issue right now is to get rid of the "forum" from the url.

Our forums are located under the /forums/ directory which makes the url www.xyz.com/forums/forum/

We would like it to be
www.xyz.com/forums/ and that's it.

Can please someone point us in the right direction?

Paul M 25 Sep 2016 18:10

The short answer is you cannot.

Technically you can change it to something else (not remove) if you do some direct edits in the route table.

I've heard of someone doing it via .htaccess redirects, but I would think that quite flakey.

Replicant 26 Sep 2016 02:56

OR, you can open site builder on each forum page, edit the url and save. I did it on mine, about 60 forums/categories (at the time), took a couple hours.

talhatc 26 Sep 2016 14:34

Quote:

Originally Posted by Replicant (Post 2576248)
OR, you can open site builder on each forum page, edit the url and save. I did it on mine, about 60 forums/categories (at the time), took a couple hours.

I have 10,000+ forum threads, so should I be changing each page? Or just the category page and all only?

Brandon Sheley 26 Sep 2016 16:38

Enjoy the vbulletin 5 feature ;)

Also id you can edit the url path like mentioned above, you should be able to put together a db query to run it in the database. Quicker if you have 100's of edits.

Replicant 26 Sep 2016 18:51

Quote:

Originally Posted by talhatc (Post 2576268)
I have 10,000+ forum threads, so should I be changing each page? Or just the category page and all only?

Categories and forums. Not threads thread.

talhatc 26 Sep 2016 19:24

Quote:

Originally Posted by Replicant (Post 2576286)
Categories and forums. Not threads thread.


So the individual posts url will remove the /forum/ from it too?

Replicant 26 Sep 2016 20:45

The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

after changing the url in sitebuilder


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Mattwhf 28 Sep 2016 12:04

I also have a same question like yours for my forum but it is impossible to change that unless you have to do custom codes for it like I am using for my forum now.

talhatc 29 Sep 2016 00:16

Quote:

Originally Posted by Replicant (Post 2576292)
The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

after changing the url in sitebuilder


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've edited the page and removed the extra /forum/ but the Sub-forums in the Activity stream still shows the extra /forum/ but once clicked, it removes the extra /forum/.

Let me know how i can get rid of the extra /forum/ from the Activity Stream module

noypiscripter 29 Sep 2016 00:43

Do a variable replacement in Styles > Replacement Variable Manager in AdminCP.

Search for Text: href="http://www.xyz.com/forums/forum/

Replace with Text: href="http://www.xyz.com/forums/

MokeyII 03 Oct 2016 10:40

Quote:

Originally Posted by noypiscripter (Post 2576398)
Do a variable replacement in Styles > Replacement Variable Manager in AdminCP.

Search for Text: href="http://www.xyz.com/forums/forum/

Replace with Text: href="http://www.vbulletin.com/forums/

This replaced the URL but broke all my links that used to use forums/forum/

noypiscripter 03 Oct 2016 21:07

Quote:

Originally Posted by MokeyII (Post 2576517)
This replaced the URL but broke all my links that used to use forums/forum/

Did you change the URLs as Replicants suggested? My post was a direct response to talhatc who changed the URLs but still seeing /forums/forum/ in the Activity stream.

MokeyII 04 Oct 2016 15:25

Yeah, sorry for not responding. I figured out a few hours later...


All times are GMT. The time now is 04:54.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.