在routes.rb. 如何将:301/传递:moved_permanently给以下路由定义?
match '/(*path)', :to => redirect { |params, request| Addressable::URI.escape request.url.sub(request.host, "www.#{request.host}") }
在routes.rb. 如何将:301/传递:moved_permanently给以下路由定义?
match '/(*path)', :to => redirect { |params, request| Addressable::URI.escape request.url.sub(request.host, "www.#{request.host}") }