Learn about Centmin Mod LEMP Stack today
Become a Member

Xenforo vB3/Photopost to Xenforo nginx rewrites ?

Discussion in 'Forum software usage' started by dotpro, Jan 5, 2018.

  1. dotpro

    dotpro New Member

    13
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    7:48 AM
    Hello,


    I need some help with converting htaccess rewrite to work with nginx/centminmod. I recently converted from vb3 and photopost gallery to xenforo and this worked on apache to redirect old thread and photopost photo URLs to new xenforo ones.

    RewriteRule ^forums/[^\./]+/[^/]+-([0-9]+)(/|$) /directory/forums/t/$1/ [R=301,L]

    RewriteRule ^pictures/[^\./]+/p([0-9]+)(-[^\./]+)?\.html$ /directory/images/$1/ [R=301,L]
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,298
    12,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,143
    Local Time:
    9:48 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Might have a better chance to ask on xenforo support forums first..

    what are examples of old url links for forums and pictures ?
     
  3. dotpro

    dotpro New Member

    13
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    7:48 AM
    I will post on xenforo.

    Example of photopost photo link:

    /pictures/aviation-nation-2017/p51920-usaf-f-35a-lightning-ii-joint-strike-fighter.html

    Forum example, I used vbSEO:
    /forums/announcements/forum-rules-11/