5
Tôi nhận url trong mô hình sau:Nhận sên từ url hiện
http://localhost/hi-every-body/
http://s1.localhost/hello-world/
http://s2.localhost/bye-world/
và tôi muốn lấy sên chính xác như
hi-every-body
hello-world
bye-world
với rất ít kiểm tra & rất ít dòng mã. Tôi đã thử nhưng quá nhiều kiểm tra xuất hiện.
oh cảm ơn bạn thân :) –