Join the community today
Register Now

Xenforo Rewrite Help

Discussion in 'Forum software usage' started by BamaStangGuy, Oct 31, 2014.

  1. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    3:16 PM
  2. eva2000

    eva2000 Administrator Staff Member

    55,797
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    6:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Oct 31, 2014
  3. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    3:16 PM
    Right that is what we are trying to do. html is removed from staticfiles.conf and still doesn't work.
     
  4. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    3:16 PM
    I see what you were saying. It was a 1 to 1 import. All ids are the same so we can skip the redirect to showthread.php
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,797
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    6:16 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you probably picked up on Jake's slight syntax or format boo boo with a newline before the rewrite, but if you didn't
    Code:
    location ~* ^/forum/[^/]+/[0-9]+-[^\.]+\.html$ {
                    rewrite [^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ last;
            }