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

vBSEO to XenForo (nginx)

Discussion in 'Server Configuration and Hosting' started by dieg0, Aug 6, 2013.

  1. dieg0

    dieg0 Active Member


    First, my http://tools.geekpoint.net/xfseo/ output

    Thread Paging
    RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
    RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
    Forum Paging
    Unsupported url format.
    Unsupported url format.

    After porting these rules to nginx this is what I got
        rewrite /[^/]+/([d]+)-.+-([d]+).html /showthread.php?t=$1&page=$2 last;
        rewrite /[^/]+/([d]+)-.+.html /showthread.php?t=$1 last;
    Is that right? I was expecting a permanent redirect (301). Not last.

    Also, It doesn't look like the forums will get redirected. Is there any way of doing it? Or should I just do it "manually". If so which of these rules should I use?

    location /forum/ {
                    rewrite name-of-the-forum/ /forums/rewrite name-of-the-forum.3 permanent;
    location /forum/ {
                    rewrite name-of-the-forum /forums/rewrite name-of-the-forum.3 permanent;
    Or maybe both at the same time?

    Finally, if I want to move my vB forum from /forum to the domain's root directory (/) which rule/s would do the job?. This is what I have tried so far
    location / {
                    rewrite forum /index.php permanent;
                    rewrite forum/ /index.php permanent;
    Last edited: Aug 6, 2013

Share This Page