dieg0
Active member
Hello,
First, my http://tools.geekpoint.net/xfseo/ output
Thread Paging
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
Thread
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
Forum Paging
Unsupported url format.
Forum
Unsupported url format.
After porting these rules to nginx this is what I got
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?
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
Thanks!
First, my http://tools.geekpoint.net/xfseo/ output
Thread Paging
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
Thread
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
Forum Paging
Unsupported url format.
Forum
Unsupported url format.
After porting these rules to nginx this is what I got
Code:
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?
Code:
location /forum/ {
rewrite name-of-the-forum/ /forums/rewrite name-of-the-forum.3 permanent;
}
Code:
location /forum/ {
rewrite name-of-the-forum /forums/rewrite name-of-the-forum.3 permanent;
}
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
Code:
location / {
rewrite forum /index.php permanent;
rewrite forum/ /index.php permanent;
}
Thanks!
Last edited: