Redirect Nginx将vBulletin URL(带slug)重定向/重写到XenForo
Nginx重定向/重写规则Redirect Nginx将vBulletin URL(带slug)重定向/重写到XenForo,redirect,nginx,url-rewriting,url-redirection,ngx-http-rewrite-module,Redirect,Nginx,Url Rewriting,Url Redirection,Ngx Http Rewrite Module,Nginx重定向/重写规则 如何配置nginx进行重定向: 旧网址 /forum/-安装vbulletin的文件夹 /elsword downloads de-cheats utilitarios/-是xenforo中主题/不会出现的论坛名称 2369461-是必须出现在url xenforo中的ID -26-04-revolution-trainer-elsword.html-是访问的主题名称,无论xenforo是什么,因为它使用正确的ID更正URL中的主题名称 新网址 /threads/
如何配置nginx进行重定向: 旧网址
www.webcheats.com.br/threads/drophack-1-3-functional-apenas-por-30-dias-aprovite-o-mais-rapido-possivel-veja-ma.2516190/将此添加到服务器
www.webcheats.com.br
config
location ^~ /forum/ {
rewrite ^/forum/(.+)/([0-9]+)-(.+)\.html$ /threads/$3.$2/ redirect;
}
将此添加到您的服务器
www.webcheats.com.br
config
location ^~ /forum/ {
rewrite ^/forum/(.+)/([0-9]+)-(.+)\.html$ /threads/$3.$2/ redirect;
}
另一种选择是不结转,因为它可能是相同的,也可能不是相同的,因此,不妨立即丢弃它,让XenForo自己制作一个
location ^~ /forum/ {
rewrite ^/forum/[^/]+/([0-9]+)- /threads/$1 redirect;
}
另一种选择是不结转,因为它可能是相同的,也可能不是相同的,因此,不妨立即丢弃它,让XenForo自己制作一个
location ^~ /forum/ {
rewrite ^/forum/[^/]+/([0-9]+)- /threads/$1 redirect;
}
您的问题是什么?如何配置nginx进行重定向?您的问题是什么?如何配置nginx进行重定向