• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Friendly URL question...

Rob

Well-known member
#1
How do i get forums included in front of urls?

I want urls like this:-

forums/threads/threadtitle.id

but I have threads like this:-

forums/forumtitle.id/

and

threads/threadtitle.id
 

Brogan

XenForo moderator
Staff member
#2
The first forums part of the URL is the installation directory.
Here for example it is community/threads/friendly-url-question.29485/

The second forums part of the URL is when viewing an actual forum.
For example: community/forums/xenforo-questions-and-support.25/

So if the installation directory was forums instead of community, forums would appear like so:
forums/forums/xenforo-questions-and-support.25/
 

Rob

Well-known member
#3
ack... ok.

I guess what I want is to include parent routes in the URL.

Ie. a thread belongs to a forum. I'm installed at the root so I cant do that and I wouldnt want forums/forums in the url anyway.
 

Brogan

XenForo moderator
Staff member
#4
The route defines the content type so /forums/threads/thread-title.1 wouldn't really make much sense.

I presume you mean you want a thread to belong to a specific forum?
In which case you want the URL to be something like this?

community/forums/xenforo-questions-and-support.25/threads/thread-title.1

You would need an add-on to do that.
 

Rob

Well-known member
#5
Ok, not a problem, its no huge deal just thought I would ask. your suggestion (needing an add-on) would be an improvement.