Apache To Nginx Help

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:

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?
 
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?
This might help you

http://centminmod.com/nginx_configure_xenforo_seo_friendly_urls.html

https://xenforo.com/help/friendly-urls/
 
Back
Top Bottom