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 BamaStangGuy, May 14, 2015.

  1. BamaStangGuy

    BamaStangGuy 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:

    http://www.christianforums.com/t43546/
    http://www.christianforums.com/f445/

    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

    http://centminmod.com/nginx_configure_xenforo_seo_friendly_urls.html

    https://xenforo.com/help/friendly-urls/
     
  3. BamaStangGuy

    BamaStangGuy Well-Known Member

    We got it figured out. Thanks
     

Share This Page