Permalink normalization regex problem

(Jay Pfaffman) #1

I’m trying to fix permalinks from URLs like this:


My plan is to create permalinks like

 forum/ID --> topic id

and then a permalink normalization that strips the category slug and the topic slug like this:


If I fix the URL by hand, it works, but I can’t get the permalink normalization to work. I’ve checked my regex at, but I’m still not getting it to work. Am I missing something obvious?

(Jay Pfaffman) #2

You don’t need to \ the / in the replacement string.



Added ? to fix topics with a title that starts with a number.