Want more timely Centmin Mod News Updates?
Become a Member

Xenforo Rewrite Help

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    568
    170
    43
    May 25, 2014
    Ratings:
    +231
    Local Time:
    12:45 AM
  2. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,034
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,908
    Local Time:
    3:45 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Last edited: Oct 31, 2014
  3. BamaStangGuy

    BamaStangGuy Active Member

    568
    170
    43
    May 25, 2014
    Ratings:
    +231
    Local Time:
    12:45 AM
    Right that is what we are trying to do. html is removed from staticfiles.conf and still doesn't work.
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. BamaStangGuy

    BamaStangGuy Active Member

    568
    170
    43
    May 25, 2014
    Ratings:
    +231
    Local Time:
    12:45 AM
    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

    40,661
    9,034
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,908
    Local Time:
    3:45 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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;
            }