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

XF 1.4 /Forums Folder & Numbers add after URL

Jeremy P

Well-known member
#3
Those are their IDs, so that the titles can change without messing up existing links, 2 threads can exist with the same title, etc etc. You can actually assign forums a URL slug by editing them in the ACP that will remove the need for the ID to be in the URL, but beware that changing it in the future will break links.

Also the "/forums/" portion is so it knows what route it's trying to match, in this case it's returning a forum.
 

Jeremy P

Well-known member
#5
You're correct that you won't be able to get the URL to match the original one. You could enter '1955-1966-vintage-ford-thunderbird' to get rid of the .6, but the 'forums/' is there to stay.

The standard solution for this situation though is to setup 301 redirects in Apache to redirect old URLs to new ones.
 

ActorMike

Active member
#8
@Brogan I was just there, I don't see anything that applies to our situation. Am I missing something? I used VBSEO so my links don't have the standard forumdisplay.php etc.
 

ActorMike

Active member
#10
I was able to import the XML file and it gave me this rule but I just tried it and it didn't work. :-(

RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]