XF 2.2 Index Page Route Question

MatthewC

Member
I had my forum in the root location and then moved it to a folder (/forums/).

I realize now though, since I didn't change the "Index Page Route" value of "/forums", that all of my URLS are now:

mywebsite.com/forums/forums/specificforumname.4/

I would like this to just be:

mywebsite.com/forums/specificforumname.4/

If I delete the value under "Index Page Route" will this result in my desired outcome? If not, how do I get to the state of:

mywebsite.com/forums/specificforumname.4/

Hopefully I'm making sense, and thanks for any assistance.
 
I'm making an assumption here that the Index Route Page functionality is what is causing this additional/redundant /forums/forums/ to occur but if I have misdiagnosed the root cause please let me know.
 
The forums/forums is because you have installed XF in a directory called forums .

The first forums is the directory name, the second forums is the route, other URLs will look like forums/threads, forums/members , etc.

I would like this to just be:

mywebsite.com/forums/specificforumname.4/
Then XF needs to be in the domain root.
 
Thank you for this reply. So how have people solved this when they have Wordpress in their root location and Xenforo in their /forums/ folder Just live with it this way? Call the folder something else like community so it's /community/forums? If I change the route to say just the letter f, would it then show up as:

mywebsite.com/forums/f/specificforumname.4/
 
I may be wrong (I think I was once) but as the first forums is necessary due to it being the directory on your server and the second forums is added by xenForo then you can only change the second one by a route but not remove it altogether

So by using a route filter you can change the second /forums/ to/-/


Screenshot 2024-07-10 at 15.40.53.webp

Admin Control Panel >Setup > Route filters
 
So how have people solved this when they have Wordpress in their root location and Xenforo in their /forums/ folder Just live with it this way?
Basically yes. Move the forum back to the route, rename the directory community (as it is here on xenforo.com) or a route filter

With one of my forums it was the same issue as we had a vBulletin home page which needed to be up one level in the root. When switching to xenForo we moved the install into the root directory public_html
 
Thank you everyone for all the replies and good options. This is really easy to change to what I would want (thanks to all of you). Hopefully this thread will also help someone in the future with the same question.
 
Back
Top Bottom