NGINX - Return 301 vs Rewrite

后端 未结 1 1750
独厮守ぢ
独厮守ぢ 2020-12-23 19:09

I use NGINX in my dedicated server.

I\'ve a question about the return and rewrite 301.


Rewrite 301:<

相关标签:
1条回答
  • 2020-12-23 19:56

    As stated in the nginx pitfalls you should use server blocks and return statements as they're way faster than evaluating RegEx via location blocks.

    Since you're forcing the rewrite rule to send a 301 there's no difference when it comes to SEO, btw..

    0 讨论(0)
提交回复
热议问题