我需要与此相当的Nginx:
Redirect 301 "/Poorly Titled File.html" http://domain.com/new-url/
我试过了:
rewrite ^/Old\%20Page\%20Title.html$$scheme://domain.com/new-url/ permanent;
location /Old\%20Page\%20Title.html{
return 301 $scheme://domain.com/new-url/;
}
有和没有逃避%的.
最佳答案
使用’在该位置附近:
@H_404_33@ 原文链接:https://www.f2er.com/nginx/435453.htmllocation '/Old Page Title.html' {
return 301 $scheme://domain.com/new-url/;
}