1
我需要Nginx是由URI一样打开文件:nginx的重写的URI到文件
http://example.com/en/foo/test-bar从/var/www/example.com/en_US/_foo_test_bar
或
从http://example.com/en/foo2/test2-bar在/ var/www/example.com/en_US/_foo2_test2_bar
替换除字母/数字之外的所有符号以进行下划线。应该怎么看这个位置,可能会更好使用重定向?
location /en/ {
rewrite ...
}
我不知道在nginx和regexp这种机制的最佳做法。谢谢。