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

    4
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    8:10 PM
    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

    36,050
    7,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,191
    Local Time:
    10:10 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    4
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    8:10 PM
    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/
     
..