I get the urls in the following patterns:
http://localhost/hi-every-body/
http://s1.localhost/hello-world/
http://s2.localhost/bye-world/
and I want to get the exact slug like
hi-every-body
hello-world
bye-world
with very few checks and very few lines of code. I tried, but there were too many checks.
source
share