1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache To Nginx Help

Discussion in 'Server Configuration and Hosting' started by Brent W, May 14, 2015.

  1. Brent W

    Brent W Well-Known Member

    Thanks to Slavik, we are on XenForo now with http://www.christianforums.com

    However, I can't get the url redirects to work for Nginx.

    Here is what I have:

    rewrite ^/t([\d]+)-([\d]+)/$ /showthread.php?t=$1&page=$2 permanent;
    rewrite ^/t([\d]+)/$ /showthread.php?t=$1 permanent;
    rewrite ^/t([\d]+)-([\d]+)/$ /forumdisplay.php?f=$1&page=$2 last;
    rewrite ^/t([\d]+)/$ /forumdisplay.php?f=$1 last;

    for the urls:


    They just redirect to the homepage.

    I have checked 301config.php and xf_import_log is defined correctly as well as the file path to xenforo install.

    What am I missing here?
  2. Tower

    Tower Active Member

    This might help you


  3. Brent W

    Brent W Well-Known Member

    We got it figured out. Thanks

Share This Page