Want more timely Centmin Mod News Updates?
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:
    7:43 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

    31,657
    7,032
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,639
    Local Time:
    10:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    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:
    7:43 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/