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

XF 1.4 handling friendly urls when username is like 99(9)+9

eva2000

Well-known member
#1
If a members using a username is like 99(9)+9 from a vB4 import to XF, it seems accessing their profile page, you end up with page not found redirect to /members/99

Anything can be done about this or need to change the member's username.

All members redirect fine from vB4 to XF except this one.

username = 99(9)+9

original vb4

/members/12345-99-9-9/

xf 1.4.6 friendly url should be

/members/99-9-9.12345/

but redirects to /members/99



cheers
 
Last edited:

Mike

XenForo developer
Staff member
#2
What's the redirect rule that you're using for that? It seems like it may be slightly bugged, likely detecting the valid URL. (This is actually one of the reasons why redirecting to different URLs is preferable; it resolves ambiguous cases.)
 

eva2000

Well-known member
#3
What's the redirect rule that you're using for that? It seems like it may be slightly bugged, likely detecting the valid URL. (This is actually one of the reasons why redirecting to different URLs is preferable; it resolves ambiguous cases.)
hmm i see what you mean it's matching against valid vb4 usernames which have digits followed by dash i.e. a valid username being 123-

Code:
RewriteRule ^members/([0-9]+)-.*$ /members/$1? [R=302,L]
is what's in place changing to 301 later but any suggestions to properly match vb4 usernames that match formats that have number-dashes at beginning of their names as I know my rewrites incorrect

cheers
 
Last edited: