1. 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

Discussion in 'Troubleshooting and Problems' started by eva2000, May 10, 2015.

  1. eva2000

    eva2000 Well-Known Member

    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


    xf 1.4.6 friendly url should be


    but redirects to /members/99

    Last edited: May 10, 2015
  2. Mike

    Mike XenForo Developer Staff Member

    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.)
  3. eva2000

    eva2000 Well-Known Member

    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-

    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

    Last edited: May 11, 2015
  4. Mike

    Mike XenForo Developer Staff Member

    Try this as the regex:
    eva2000 likes this.
  5. eva2000

    eva2000 Well-Known Member

    thanks @Mike that works nicely (y)

Share This Page