PDA

View Full Version : Remove "forum" from the url /forums/forum/ - VB 5.2.2


talhatc
09-25-2016, 01:54 PM
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
09-25-2016, 04:10 PM
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
09-26-2016, 12:56 AM
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
09-26-2016, 12:34 PM
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
09-26-2016, 02:38 PM
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
09-26-2016, 04:51 PM
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
09-26-2016, 05:24 PM
Categories and forums. Not threads thread.


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

Replicant
09-26-2016, 06:45 PM
The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url http://www.k5blazersplus.com/forums/forum/main-forum/build-threads/chevy/69-72-first-gen/nodeid-thread-name
after changing the url in sitebuilder

http://www.k5blazersplus.com/forums/69-72-first-gen/nodeid-thread-name

Mattwhf
09-28-2016, 10:04 AM
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
09-28-2016, 10:16 PM
The individual threads will have the url path of their parent.

On my forum:
before changing the 69-72-first-gen forum url http://www.k5blazersplus.com/forums/forum/main-forum/build-threads/chevy/69-72-first-gen/nodeid-thread-name
after changing the url in sitebuilder

http://www.k5blazersplus.com/forums/69-72-first-gen/nodeid-thread-name

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
09-28-2016, 10:43 PM
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
10-03-2016, 08:40 AM
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
10-03-2016, 07:07 PM
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
10-04-2016, 01:25 PM
Yeah, sorry for not responding. I figured out a few hours later...